yuchengxin commented on code in PR #22767: URL: https://github.com/apache/flink/pull/22767#discussion_r1264960119
########## flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/PushWatermarkIntoTableSourceScanRuleBase.java: ########## @@ -117,8 +126,33 @@ protected FlinkLogicalTableSourceScan getNewScan( idleTimeoutMillis = -1L; } + Optional<RelHint> optionsHintOptional = + scan.getHints().stream() + .filter( + relHint -> + relHint.hintName.equalsIgnoreCase( + FlinkHints.HINT_NAME_OPTIONS)) + .findFirst(); + Configuration hintOptions = new Configuration(); + if (optionsHintOptional.isPresent()) { + RelHint optionsHint = optionsHintOptional.get(); + hintOptions = Configuration.fromMap(optionsHint.kvOptions); + } + Configuration tableOptions = new Configuration(); + RelOptTable table = scan.getTable(); + if (table instanceof TableSourceTable) { + Map<String, String> tableConfigs = + ((TableSourceTable) table) + .contextResolvedTable() + .getResolvedTable() + .getOptions(); + tableOptions = Configuration.fromMap(tableConfigs); + } Review Comment: modified -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org