[
https://issues.apache.org/jira/browse/SPARK-37521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
jingxiong zhong updated SPARK-37521:
------------------------------------
Summary: insert overwrite table but the partition information stored in
Metastore was not changed (was: insert overwrite table but didn't change the
message of metastore)
> insert overwrite table but the partition information stored in Metastore was
> not changed
> ----------------------------------------------------------------------------------------
>
> Key: SPARK-37521
> URL: https://issues.apache.org/jira/browse/SPARK-37521
> Project: Spark
> Issue Type: Question
> Components: SQL
> Affects Versions: 3.2.0
> Environment: spark3.2.0
> hive2.3.9
> metastore2.3.9
> Reporter: jingxiong zhong
> Priority: Blocker
>
> I create a partitioned table in SparkSQL, insert a data entry, add a regular
> field, and finally insert a new data entry into the partition,The query is
> normal in SparkSQL, but the return value of the newly inserted field is NULL
> in Hive 2.3.9
> for example
> create table updata_col_test1(a int) partitioned by (dt string);
> insert overwrite table updata_col_test1 partition(dt='20200101') values(1);
> insert overwrite table updata_col_test1 partition(dt='20200102') values(1);
> insert overwrite table updata_col_test1 partition(dt='20200103') values(1);
> alter table updata_col_test1 add columns (b int);
> insert overwrite table updata_col_test1 partition(dt) values(1, 2,
> '20200101'); fail
> insert overwrite table updata_col_test1 partition(dt='20200101') values(1,
> 2); fail
> insert overwrite table updata_col_test1 partition(dt='20200104') values(1,
> 2); sucessfully
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]