snuyanzin commented on code in PR #21993:
URL: https://github.com/apache/flink/pull/21993#discussion_r1116011807
##########
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:
that seems not true.
Example: array[1, 2, 3] which has nullability `NOT NULL` and
`ARRAY_ELEMENT_ARG_NULLABLE` makes it nullable. So it looks like it doesn't
"untouched" nullability.
--
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]