hanyuzheng7 commented on code in PR #22917:
URL: https://github.com/apache/flink/pull/22917#discussion_r1247961308


##########
flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/strategies/SpecificTypeStrategies.java:
##########
@@ -58,8 +58,12 @@ public final class SpecificTypeStrategies {
     /** See {@link ArrayTypeStrategy}. */
     public static final TypeStrategy ARRAY = new ArrayTypeStrategy();
 
-    /** See {@link ArrayElementOutputTypeStrategy}. */
-    public static final TypeStrategy ARRAY_ELEMENT = new 
ArrayElementOutputTypeStrategy();
+    /** Type strategy specific for array element. */
+    public static final TypeStrategy ARRAY_ELEMENT =
+            callContext ->
+                    Optional.of(

Review Comment:
   new Integer[] {1, 2})
   DataTypes.ARRAY(DataTypes.INT().notNull()).notNull())
   .testResult($("f15").arrayMax(), "ARRAY_MAX(f15)", 2, DataTypes.INT())
   
   So at this time, you cannot set new Integer[] {1, 2}) to null do you? I try 
it, it will report error.
   So what I mean is if this cannot be null, why the output cannot be 
DataTypes.INT().notNull(). because the input type is not null we have already 
know it, if you set it null, it will report error, so does this process involve 
run time?



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