hackergin commented on code in PR #24183: URL: https://github.com/apache/flink/pull/24183#discussion_r1468766280
########## flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/inference/TypeInferenceOperandChecker.java: ########## @@ -116,7 +127,17 @@ public Consistency getConsistency() { @Override public boolean isOptional(int i) { - return false; + Optional<List<Boolean>> optionalArguments = typeInference.getOptionalArguments(); + if (optionalArguments.isPresent()) { + return optionalArguments.get().get(i); Review Comment: The argument hint is for optional parameters that have default values, so there will not be a null situation. -- 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