Skip to content

[KYUUBI #7398] SERDEPROPERTIES are missing when KSHC create table#7399

Open
maomaodev wants to merge 2 commits intoapache:masterfrom
maomaodev:kyuubi-7398
Open

[KYUUBI #7398] SERDEPROPERTIES are missing when KSHC create table#7399
maomaodev wants to merge 2 commits intoapache:masterfrom
maomaodev:kyuubi-7398

Conversation

@maomaodev
Copy link
Copy Markdown
Contributor

@maomaodev maomaodev commented Apr 11, 2026

Why are the changes needed?

  1. Execute the following SQL to create table and insert.
CREATE TABLE test_table (name STRING, age INT)
ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
WITH SERDEPROPERTIES ('field.delim' = ',')
STORED AS TEXTFILE;

INSERT INTO TABLE test_table VALUES ('alice', 30);
  1. Check the underlying HDFS data. Output is alice30, Expected is alice,30
hdfs dfs -cat /usr/hive/warehouse/test_table/part-00000-08cdc3f0-15af-413a-a709-46e24f1ace91-c000
  1. Cause: SERDEPROPERTIES are missing when KSHC create table, it did not strip the option. prefix. See: [SPARK-31257][SPARK-33561][SQL] Unify create table syntax spark#28026

How was this patch tested?

UT

Was this patch authored or co-authored using generative AI tooling?

No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant