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

[jira] [Created] (SPARK-37521) insert overwrite table but didn't change the message of metastore

jingxiong zhong created SPARK-37521:
---------------------------------------

             Summary: insert overwrite table but didn't change the message of metastore
                 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


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

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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org