You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2015/04/24 02:44:38 UTC
[jira] [Updated] (SPARK-6023) ParquetConversions fails to replace
the destination MetastoreRelation of an InsertIntoTable node to
ParquetRelation2
[ https://issues.apache.org/jira/browse/SPARK-6023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Owen updated SPARK-6023:
-----------------------------
Assignee: Yin Huai
> 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
> Assignee: 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org