title: Trouble building a simple SparkSQL application
body: <p>This is a pretty noob question.</p>
  
  <p>I'm trying to learn about SparkSQL.  I've been following the example described here:
  <a href="http://spark.apache.org/docs/1.0.0/sql-programming-guide.html" rel="noreferrer">http://spark.apache.org/docs/1.0.0/sql-programming-guide.html</a></p>
  
  <p>Everything works fine in the Spark-shell, but when I try to use sbt to build a batch version, I get the following error message:
  <code>object sql is not a member of package org.apache.spark</code></p>
  
  <p>Unfortunately, I'm rather new to sbt, so I don't know how to correct this problem.  I suspect that I need to include additional dependencies, but I can't figure out how.</p>
  
  <p>Here is the code I'm trying to compile:</p>
  
  <pre class="lang-scala prettyprint-override"><code>/* TestApp.scala */
  import org.apache.spark.SparkContext
  import org.apache.spark.SparkContext._
  import org.apache.spark.SparkConf
  
  case class Record(k: Int, v: String)
  
  object TestApp {
   def main(args: Array[String]) {
     val conf = new SparkConf().setAppName("Simple Application")
     val sc = new SparkContext(conf)
     val sqlContext = new org.apache.spark.sql.SQLContext(sc)
     import sqlContext._
     val data = sc.parallelize(1 to 100000)
     val records = data.map(i =&gt; new Record(i, "value = "+i))
     val table = createSchemaRDD(records, Record)
     println("&gt;&gt;&gt; " + table.count)
   }
  }
  </code></pre>
  
  <p>The error is flagged on the line where I try to create a SQLContext.</p>
  
  <p>Here is the content of the sbt file:</p>
  
  <pre class="lang-scala prettyprint-override"><code>name := "Test Project"
  
  version := "1.0"
  
  scalaVersion := "2.10.4"
  
  libraryDependencies += "org.apache.spark" %% "spark-core" % "1.0.0"
  
  resolvers += "Akka Repository" at "http://repo.akka.io/releases/"
  </code></pre>
  
  <p>Thanks for the help.</p>