You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by junius <ju...@gmail.com> on 2014/07/19 09:39:57 UTC
registerAsTable can't be compiled
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
org.apache.spark.rdd.RDD[org.apache.spark.examples.mySparkExamples.Record]
Junius Zhou
b.r
Re: registerAsTable can't be compiled
Posted by Michael Armbrust <mi...@databricks.com>.
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 <ju...@gmail.com> wrote:
> 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
> org.apache.spark.rdd.RDD[org.apache.spark.examples.mySparkExamples.Record]
>
> Junius Zhou
> b.r
>