You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[KYUUBI #7406] Remove redundant table properties when KSHC create table
### Why are the changes needed?
Fixed#6443. When creating an external table via KSHC with `EXTERNAL` and `LOCATION` specified, the KSHC table properties will include `external=true`(lowercase). Meanwhile, Hive Metastore automatically appends `EXTERNAL=TRUE` (uppercase). On some metastore backends (e.g. MySQL with a case-insensitive collation), this leads to a duplicate primary key conflict in TABLE_PARAMS.
This PR removes redundant table properties when KSHC creates tables. For example, the `external` property will be excluded.
### How was this patch tested?
UT
### Was this patch authored or co-authored using generative AI tooling?
No
Closes#7406 from maomaodev/kyuubi-6443.
Closes#740683e3f92 [lifumao] fix ut
e006281 [lifumao] fix ut
5d8e916 [lifumao] Remove redundant table properties when KSHC create table
Authored-by: lifumao <[email protected]>
Signed-off-by: Cheng Pan <[email protected]>
Copy file name to clipboardExpand all lines: extensions/spark/kyuubi-spark-connector-hive/src/main/scala/org/apache/kyuubi/spark/connector/hive/HiveTableCatalog.scala
Copy file name to clipboardExpand all lines: extensions/spark/kyuubi-spark-connector-hive/src/test/scala/org/apache/kyuubi/spark/connector/hive/HiveCatalogSuite.scala
0 commit comments