You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2020/12/23 06:57:00 UTC

[jira] [Commented] (SPARK-33887) Allow insert overwrite same table with static partition if using dynamic partition overwrite mode

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

Apache Spark commented on SPARK-33887:
--------------------------------------

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

> Allow insert overwrite same table with static partition if using dynamic partition overwrite mode
> -------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-33887
>                 URL: https://issues.apache.org/jira/browse/SPARK-33887
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.0.1
>            Reporter: Wang Shuo
>            Priority: Major
>
> {code:sql}
> CREATE TABLE insertTable(i int, part int) USING PARQUET
> PARTITIONED BY (part);
> INSERT INTO TABLE insertTable PARTITION(part=1) SELECT 1;
> SET spark.sql.sources.partitionOverwriteMode=DYNAMIC;
> INSERT OVERWRITE TABLE insertTable PARTITION(part=1)
> SELECT i + 1 FROM insertTable WHERE part = 1;
> {code}
> The SQL will fail because Spark complains  "Cannot overwrite a path that is also being read from."



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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