title: Spark SQL Stackoverflow
body: <p>I'm a newbie on spark and spark sql and I was trying to make the example that is on Spark SQL website, just a simple SQL query after loading the schema and data from a JSON files directory, like this:</p>
  
  <pre><code>import sqlContext.createSchemaRDD
  val sqlContext = new org.apache.spark.sql.SQLContext(sc)
  val path = "/home/shaza90/Desktop/tweets_1428981780000"
  val tweet = sqlContext.jsonFile(path).cache()
  
  tweet.registerTempTable("tweet")
  tweet.printSchema() //This one works fine
  
  
  val texts = sqlContext.sql("SELECT tweet.text FROM tweet").collect().foreach(println) 
  </code></pre>
  
  <p>The exception that I'm getting is this one:</p>
  
  <pre><code>java.lang.StackOverflowError
  
      at scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1.apply(Parsers.scala:254)
  at scala.util.parsing.combinator.Parsers$$anon$3.apply(Parsers.scala:222)
  </code></pre>
  
  <p><strong>Update</strong> </p>
  
  <p>I'm able to execute <code>select * from tweet</code> but whenever I use a column name instead of * I get the error.</p>
  
  <p>Any Advice?</p>