I don't know why the JavaSchemaRDD.baseSchemaRDD is private[sql]. And I found
that DataTypeConversions is protected[sql].
Finally I find this solution:
<pre>
<code>
jrdd.registerTempTable("transform_tmp")
jrdd.sqlContext.sql("select * from transform_tmp")
</code>
</pre>
~~~~
Could Any One tell me that: Is it a good idea for me to *use catalyst as
DSL's execution engine?*
I am trying to build a DSL, And I want to confirm this.
--
View this message in context:
http://apache-spark-user-list.1001560.n3.nabble.com/SparkSQL-Convert-JavaSchemaRDD-to-SchemaRDD-tp16482.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]