title: Creating a table in Cassandra using Phantom in Scala
body: <p>I am following the tutorial here: <a href="http://blog.websudos.com/2015/04/04/a-series-on-phantom-part-1-getting-started-with-phantom/" rel="nofollow">http://blog.websudos.com/2015/04/04/a-series-on-phantom-part-1-getting-started-with-phantom/</a></p>
  
  <p>Cassandra version: 2.1.8</p>
  
  <p>PhatomVersion 1.10.1</p>
  
  <p>Scala version: 2.11.2</p>
  
  <p>sbt-version: 0.13.8</p>
  
  <p>In addition to the code given in the article I have the following:</p>
  
  <pre><code>object App {
    def main(args: Array[String]) {
      val user = new User(UUID.fromString("00000000-0000-0000-0000-000000000000"), "test@test.com", "Dan", DateTime.now)
     val resultSetFuture = Users.store(user)
     Await.result(resultSetFuture, Duration.Inf)
    }
  }
  </code></pre>
  
  <p>When I <code>run</code> the program from <code>sbt</code> I get the following error (here is the head of the stack trace):</p>
  
  <pre><code>[error] (run-main-0) com.datastax.driver.core.exceptions.SyntaxError: line 1:157 no viable alternative at input 'CONSISTENCY' (..., 'Dan', 1437914728864) USING [CONSISTENCY]...)
  com.datastax.driver.core.exceptions.SyntaxError: line 1:157 no viable alternative at input 'CONSISTENCY' (..., 'Dan', 1437914728864) USING [CONSISTENCY]...)
  </code></pre>
  
  <p>I have checked the <code>csqlsh</code> and the namespace has been created but no table has been created.</p>
  
  <p>Any help much appreciated.</p>
  
  <p>Here is the <code>build.sbt</code> in case it is useful:</p>
  
  <pre><code>name := "Something"
  
  organization := "danmisun.github.com"
  
  version := "0.1.0-SNAPSHOT"
  
  scalaVersion := "2.11.2"
  
  crossScalaVersions := Seq("2.10.4", "2.11.2")
  
  val PhantomVersion = "1.10.1"
  
  libraryDependencies ++= Seq(
    "org.scalatest" %% "scalatest" % "2.2.1" % "test",
    "org.scalacheck" %% "scalacheck" % "1.11.5" % "test",
    "com.websudos" % "phantom_2.11" % PhantomVersion,
    "com.websudos" % "phantom-dsl_2.11" % PhantomVersion,
    "com.websudos" % "phantom-testkit_2.11" % PhantomVersion % "test,   provided"
  )
  
  resolvers ++= Seq(
    "Typesafe repository snapshots" at "http://repo.typesafe.com/typesafe/snapshots/",
    "Typesafe repository releases" at "http://repo.typesafe.com/typesafe/releases/",
    "Sonatype repo"                    at "https://oss.sonatype.org/content/groups/scala-tools/",
    "Sonatype releases"                at "https://oss.sonatype.org/content/repositories/releases",
    "Sonatype snapshots"               at "https://oss.sonatype.org/content/repositories/snapshots",
    "Sonatype staging"                 at "http://oss.sonatype.org/content/repositories/staging",
    "Java.net Maven2 Repository"       at "http://download.java.net/maven/2/",
    "Twitter Repository"               at "http://maven.twttr.com",
    Resolver.bintrayRepo("websudos", "oss-releases")
  )
  
  initialCommands := "import something._"
  </code></pre>