danny0405 commented on code in PR #10227:
URL: https://github.com/apache/hudi/pull/10227#discussion_r1413315922
##########
hudi-flink-datasource/hudi-flink/src/test/java/org/apache/hudi/table/catalog/TestHoodieCatalog.java:
##########
@@ -248,6 +250,36 @@ public void testCreateTable() throws Exception {
// test create exist table
assertThrows(TableAlreadyExistException.class,
() -> catalog.createTable(tablePath, EXPECTED_CATALOG_TABLE, false));
+
+ // validate key generator for partitioned table
+ HoodieTableMetaClient metaClient = HoodieTableMetaClient
+ .builder()
+ .setConf(new org.apache.hadoop.conf.Configuration())
+ .setBasePath(catalog.inferTablePath(catalogPathStr, tablePath))
+ .build();
+ String keyGeneratorClassName =
metaClient.getTableConfig().getKeyGeneratorClassName();
+ assertEquals(keyGeneratorClassName,
NonpartitionedAvroKeyGenerator.class.getName());
Review Comment:
Why partitioned table uses `NonpartitionedAvroKeyGenerator` ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]