cshuo commented on code in PR #19307:
URL: https://github.com/apache/hudi/pull/19307#discussion_r3612010165
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/util/StreamerUtil.java:
##########
@@ -359,12 +368,26 @@ public static HoodieTableMetaClient initTableIfNotExists(
basePath, conf.get(FlinkOptions.TABLE_NAME));
}
- return StreamerUtil.createMetaClient(conf, hadoopConf);
+ HoodieTableMetaClient metaClient = StreamerUtil.createMetaClient(conf,
hadoopConf);
+ validateInsertOperationStorageLayout(conf,
metaClient.getTableConfig().getTableStorageLayout());
+ // The persisted layout is authoritative for existing tables. For newly
created tables this
+ // also propagates Flink's LSM default to write-side components that read
the runtime config.
+ conf.setString(HoodieTableConfig.TABLE_STORAGE_LAYOUT.key(),
Review Comment:
move to HoodieTableFactory
--
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]