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

Maxim Gekk updated SPARK-33529:
-------------------------------
    Description: 
The partition value '__HIVE_DEFAULT_PARTITION__' should be handled as null - 
the same as DSv1 does.

For example in DSv1:

{code:java}
spark-sql> CREATE TABLE tbl11 (id int, part0 string) USING parquet PARTITIONED 
BY (part0);
spark-sql> ALTER TABLE tbl11 ADD PARTITION (part0 = 
'__HIVE_DEFAULT_PARTITION__');
spark-sql> INSERT INTO tbl11 PARTITION (part0='__HIVE_DEFAULT_PARTITION__') 
SELECT 1;
spark-sql> SELECT * FROM tbl11;
1       NULL
{code}
 

 

  was:The partition value '__HIVE_DEFAULT_PARTITION__' should be handled as 
null - the same as DSv1 does.


> Resolver of V2 partition specs doesn't handle __HIVE_DEFAULT_PARTITION__
> ------------------------------------------------------------------------
>
>                 Key: SPARK-33529
>                 URL: https://issues.apache.org/jira/browse/SPARK-33529
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.1.0
>            Reporter: Maxim Gekk
>            Priority: Major
>
> The partition value '__HIVE_DEFAULT_PARTITION__' should be handled as null - 
> the same as DSv1 does.
> For example in DSv1:
> {code:java}
> spark-sql> CREATE TABLE tbl11 (id int, part0 string) USING parquet 
> PARTITIONED BY (part0);
> spark-sql> ALTER TABLE tbl11 ADD PARTITION (part0 = 
> '__HIVE_DEFAULT_PARTITION__');
> spark-sql> INSERT INTO tbl11 PARTITION (part0='__HIVE_DEFAULT_PARTITION__') 
> SELECT 1;
> spark-sql> SELECT * FROM tbl11;
> 1     NULL
> {code}
>  
>  



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

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

Reply via email to