You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Maxim Gekk (Jira)" <ji...@apache.org> on 2020/11/24 09:37:00 UTC
[jira] [Updated] (SPARK-33529) Resolver of V2 partition specs
doesn't handle __HIVE_DEFAULT_PARTITION__
[ 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org