snuyanzin commented on code in PR #21993:
URL: https://github.com/apache/flink/pull/21993#discussion_r1116870255


##########
flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/strategies/SpecificInputTypeStrategies.java:
##########
@@ -71,7 +71,11 @@ public final class SpecificInputTypeStrategies {
 
     /** Argument type derived from the array element type. */
     public static final ArgumentTypeStrategy ARRAY_ELEMENT_ARG =
-            new ArrayElementArgumentTypeStrategy();
+            new ArrayElementArgumentTypeStrategy(false);
+
+    /** Argument type derived from the array element type. But leaves 
nullability untouched. */

Review Comment:
   Compare implementation. The logic in implementation is different: in 
`org.apache.flink.table.types.inference.strategies.CommonArgumentTypeStrategy#inferArgumentType`
 it could preserve nullability. In your case no, that's why i raised it



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

Reply via email to