[ 
https://issues.apache.org/jira/browse/SPARK-6023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Cheng Lian resolved SPARK-6023.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 1.3.0

Issue resolved by pull request 4782
[https://github.com/apache/spark/pull/4782]

> ParquetConversions fails to replace the destination MetastoreRelation of an 
> InsertIntoTable node to ParquetRelation2
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-6023
>                 URL: https://issues.apache.org/jira/browse/SPARK-6023
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Yin Huai
>            Priority: Blocker
>             Fix For: 1.3.0
>
>
> {code}
> 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)
> {code}
> The plan will be
> {code}
> [== Physical Plan ==]
> [InsertIntoHiveTable (MetastoreRelation default, test, None), Map(), false]
> [ PhysicalRDD [a#34L], MapPartitionsRDD[17] at map at JsonRDD.scala:41]
> {code}
> However, the write path should be converted to our own data source path.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to