spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-5746) INSERT OVERWRITE throws FileNotFoundException when the source and destination point to the same table.
Date Sat, 14 Feb 2015 18:03:12 GMT

    [ https://issues.apache.org/jira/browse/SPARK-5746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14321604#comment-14321604
] 

Apache Spark commented on SPARK-5746:
-------------------------------------

User 'yanbohappy' has created a pull request for this issue:
https://github.com/apache/spark/pull/4607

> INSERT OVERWRITE throws FileNotFoundException when the source and destination point to
the same table.
> ------------------------------------------------------------------------------------------------------
>
>                 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
>
> With the newly introduced write support of data source API, {{JSONRelation}} and {{ParquetRelation2}}
both suffer this bug.
> The root cause is that we removed the source table before insertion ([here|https://github.com/apache/spark/blob/1ac099e3e00ddb01af8e6e3a84c70f8363f04b5c/sql/core/src/main/scala/org/apache/spark/sql/json/JSONRelation.scala#L112-L121]).
> The correct solution should be first insert into a temporary folder, and then overwrite
the source table.



--
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


Mime
View raw message