danny0405 commented on code in PR #7097:
URL: https://github.com/apache/hudi/pull/7097#discussion_r1010129745
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/table/HoodieTableFactory.java:
##########
@@ -347,4 +351,12 @@ private static void inferAvroSchema(Configuration conf,
LogicalType rowType) {
conf.setString(FlinkOptions.SOURCE_AVRO_SCHEMA, inferredSchema);
}
}
+
+ private static void setupRootOptions(Configuration conf, ReadableConfig
configuration) {
+ if (configuration instanceof TableConfig) {
+ ((Configuration)((TableConfig)
configuration).getRootConfiguration()).toMap().forEach((rootConfigKey,
rootConfigValue) -> {
+ conf.setString(rootConfigKey, rootConfigValue);
Review Comment:
Not sure what kind of options are passed through the
`context.getConfiguration()`, seems the options from `TableConfig` ? Actually
if you use the SQL, the option with prefix `hadoop.` can be passed correctly.
--
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]