registerAsTable can't be compiled

2014-07-19 Thread junius
Hello, I write code to practice Spark Sql based on latest Spark version. But I get compilation error as following, seems the implicit conversion from RDD to SchemaRDD doesn't work. If anybody can help me to fix it. Thanks a lot. value registerAsTable is not a member of

Re: registerAsTable can't be compiled

2014-07-19 Thread Michael Armbrust
Can you provide the code? Is Record a case class? and is it defined as a top level object? Also have you done import sqlContext._? On Sat, Jul 19, 2014 at 3:39 AM, junius junius.z...@gmail.com wrote: Hello, I write code to practice Spark Sql based on latest Spark version. But I get