slinkydeveloper commented on a change in pull request #17256: URL: https://github.com/apache/flink/pull/17256#discussion_r710124374
########## File path: flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/TypeStrategies.java ########## @@ -105,6 +105,23 @@ public static TypeStrategy nullableIfArgs(TypeStrategy initialStrategy) { return nullableIfArgs(ConstantArgumentCount.any(), initialStrategy); } + /** + * A type strategy that can be used to make a result type nullable if all the selected input + * arguments is nullable. Otherwise the type will be not null. + */ + public static TypeStrategy nullableIfAllArgs( Review comment: While looking in the calcite doc, I've found this which confirms the correctness of our type inference logic: https://calcite.apache.org/docs/reference.html#conversion-contexts-and-strategies -- 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