Description
import sqlContext._ sql("drop table if exists test") val df1 = sqlContext.jsonRDD(sc.parallelize((1 to 10).map(i => s"""{"a":$i}"""))) df1.registerTempTable("jt") sql("create table test (a bigint) stored as parquet ") sql("explain insert into table test select a from jt").collect.foreach(println)
The plan will be
[== Physical Plan ==] [InsertIntoHiveTable (MetastoreRelation default, test, None), Map(), false] [ PhysicalRDD [a#34L], MapPartitionsRDD[17] at map at JsonRDD.scala:41]
However, the write path should be converted to our own data source path.
Attachments
Issue Links
- links to