IMPALA-14529: (addendum) Fix kudu_create.test

Kudu throws different error message after IMPALA-14529. This patch
adjust the error message in kudu_create.test to let the test pass.

Testing:
Pass TestDdlStatements.test_create_kudu and
TestKuduHMSIntegration.test_create_managed_kudu_tables.

Change-Id: Iff4cd08f46626d03b1f0800828e5872b83f522ca
Reviewed-on: http://gerrit.cloudera.org:8080/23648
Reviewed-by: Michael Smith <michael.smith@cloudera.com>
Tested-by: Michael Smith <michael.smith@cloudera.com>
This commit is contained in:
Riza Suminto
2025-11-06 14:03:31 -08:00
committed by Michael Smith
parent f2f297a00f
commit 671a7fcada

View File

@@ -21,14 +21,14 @@ INT,INT
create table tab (x int, y boolean, primary key(x, y))
partition by hash (x) partitions 3 stored as kudu
---- CATCH
NonRecoverableException: key column may not have type of BOOL, FLOAT, or DOUBLE
NonRecoverableException: key column may not have type of BOOL, FLOAT, DOUBLE, or NESTED
====
---- QUERY
# Float primary key column
create table tab (x int, y float, primary key(x, y))
partition by hash (x) partitions 3 stored as kudu
---- CATCH
NonRecoverableException: key column may not have type of BOOL, FLOAT, or DOUBLE
NonRecoverableException: key column may not have type of BOOL, FLOAT, DOUBLE, or NESTED
====
---- QUERY
# Primary keys should be declared first
@@ -631,21 +631,21 @@ ImpalaRuntimeException: Kudu NON UNIQUE PRIMARY KEY columns must be specified as
create table non_unique_key_create_tbl10 (x boolean non unique primary key)
partition by hash(x) partitions 8 stored as kudu
---- CATCH
NonRecoverableException: key column may not have type of BOOL, FLOAT, or DOUBLE
NonRecoverableException: key column may not have type of BOOL, FLOAT, DOUBLE, or NESTED
====
---- QUERY
# Non unique primary key cannot be float type
create table non_unique_key_create_tbl11 (x float non unique primary key)
partition by hash(x) partitions 8 stored as kudu
---- CATCH
NonRecoverableException: key column may not have type of BOOL, FLOAT, or DOUBLE
NonRecoverableException: key column may not have type of BOOL, FLOAT, DOUBLE, or NESTED
====
---- QUERY
# Non unique primary key cannot be double type
create table non_unique_key_create_tbl12 (x double non unique primary key)
partition by hash(x) partitions 8 stored as kudu
---- CATCH
NonRecoverableException: key column may not have type of BOOL, FLOAT, or DOUBLE
NonRecoverableException: key column may not have type of BOOL, FLOAT, DOUBLE, or NESTED
====
---- QUERY
# Cannot create a Kudu table without any key and partition