You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2021/02/08 13:54:08 UTC

[jira] [Updated] (SPARK-34203) FileSource table null partition can not be dropped

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

Hyukjin Kwon updated SPARK-34203:
---------------------------------
    Fix Version/s: 3.1.1

> FileSource table null partition can not be dropped
> --------------------------------------------------
>
>                 Key: SPARK-34203
>                 URL: https://issues.apache.org/jira/browse/SPARK-34203
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.0.1, 3.1.0, 3.2.0
>            Reporter: Kent Yao
>            Assignee: Maxim Gekk
>            Priority: Major
>             Fix For: 3.0.2, 3.2.0, 3.1.1, 3.1.2
>
>
> *case to reproduce*
> create table ppp(i string, j string) using parquet partitioned by (j);
> INSERT INTO ppp PARTITION (j=null) VALUES ('1');
>  alter table ppp drop partition(j=null); --- success
> INSERT OVERWRITE ppp VALUES ('1', null);  --- error
> Error in query: No partition is dropped. One partition spec 'Map(j -> null)' does not exist in table 'ppp' database 'default';
> alter table ppp drop partition(j='__HIVE_DEFAULT_PARTITION__'); --- then, this is need



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