danny0405 commented on code in PR #11031:
URL: https://github.com/apache/hudi/pull/11031#discussion_r1604324067
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/table/HoodieTableFactory.java:
##########
@@ -86,6 +86,8 @@ public DynamicTableSource createDynamicTableSource(Context
context) {
setupTableOptions(conf.getString(FlinkOptions.PATH), conf);
ResolvedSchema schema = context.getCatalogTable().getResolvedSchema();
setupConfOptions(conf, context.getObjectIdentifier(),
context.getCatalogTable(), schema);
+ HoodieTableMetaClient metaClient = StreamerUtil.metaClientForReader(conf,
HadoopConfigurations.getHadoopConf(conf));
+ SanityChecksUtil.sanitCheck(conf, schema, metaClient);
Review Comment:
Move the instantiation of meta client into the SanityCheckUtil. And can we
rename the class to `SanityChecks`
--
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]