You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2026/08/07 12:51:00 UTC

[jira] [Resolved] (SPARK-56558) CTAS IF NOT EXISTS bypasses non-empty location check when table does not exist in catalog

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

Wenchen Fan resolved SPARK-56558.
---------------------------------
    Fix Version/s: 4.3.0
       Resolution: Fixed

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

> CTAS IF NOT EXISTS bypasses non-empty location check when table does not exist in catalog
> -----------------------------------------------------------------------------------------
>
>                 Key: SPARK-56558
>                 URL: https://issues.apache.org/jira/browse/SPARK-56558
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 4.2.0, 4.1.2, 3.5.9, 4.0.3
>            Reporter: Pablo Langa Blanco
>            Assignee: Pablo Langa Blanco
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.3.0
>
>
> CREATE TABLE IF NOT EXISTS ... LOCATION ... AS SELECT silently overwrites data in a non-empty directory when the table does not yet exist in the catalog, bypassing the protection introduced in SPARK-28551



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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