Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.15.0, 1.16.0, 1.17.0
-
None
-
None
Description
Can be reproduced by the following SQL:
tableEnv.getConfig().setSqlDialect(SqlDialect.DEFAULT); tableEnv.executeSql( "create table t1(`date` string, `geo_altitude` FLOAT) partitioned by (`date`)" + " with ('connector' = 'hive', 'sink.partition-commit.delay'='1 s', 'sink.partition-commit.policy.kind'='metastore,success-file')"); CatalogTable catalogTable = (CatalogTable) hiveCatalog.getTable(ObjectPath.fromString("default.t1")); // the following assertion will fail assertThat(catalogTable.getPartitionKeys().toString()).isEqualTo("[date]");