lihaosky commented on code in PR #26924:
URL: https://github.com/apache/flink/pull/26924#discussion_r2388438398


##########
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/physical/stream/StreamPhysicalMLPredictTableFunctionRule.java:
##########
@@ -72,7 +99,119 @@ public boolean matches(RelOptRuleCall call) {
 
         final RelTraitSet providedTraitSet =
                 rel.getTraitSet().replace(FlinkConventions.STREAM_PHYSICAL());
+
+        // Extract and validate configuration from the 4th operand if present
+        final RexCall rexCall = (RexCall) scan.getCall();
+        final Map<String, String> runtimeConfig = buildRuntimeConfig(rexCall);
+
         return new StreamPhysicalMLPredictTableFunction(

Review Comment:
   I don't recall exactly why it's moved here. I think it might be related to 
the validation of the map we do now. It can't be earlier since I can't extract 
out the map literal using ptf mechanism. So it's moved to check early in the 
rule and build the config.



-- 
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]

Reply via email to