[
https://issues.apache.org/jira/browse/SPARK-5746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Armbrust resolved SPARK-5746.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.3.0
Issue resolved by pull request 4617
[https://github.com/apache/spark/pull/4617]
> Check invalid cases for the write path of data source API
> ---------------------------------------------------------
>
> Key: SPARK-5746
> URL: https://issues.apache.org/jira/browse/SPARK-5746
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 1.3.0
> Reporter: Cheng Lian
> Assignee: Cheng Lian
> Priority: Blocker
> Fix For: 1.3.0
>
>
> Right now, with the newly introduced write support of data source API,
> {{JSONRelation}} and {{ParquetRelation2}} both delete data first when the
> save mode is overwrite
> ([here|https://github.com/apache/spark/blob/1ac099e3e00ddb01af8e6e3a84c70f8363f04b5c/sql/core/src/main/scala/org/apache/spark/sql/json/JSONRelation.scala#L112-L121])
> and this behavior introduces issues when the destination table is an input
> table of the query. For example
> {code}
> INSERT OVERWRITE t SELECT * FROM t
> {code}
> We need to add an analysis rule to check cases that are invalid for the write
> path of data source API.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]