dawidwys commented on code in PR #23622: URL: https://github.com/apache/flink/pull/23622#discussion_r1380488848
########## flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/strategies/SpecificTypeStrategies.java: ########## @@ -59,12 +59,9 @@ public final class SpecificTypeStrategies { public static final TypeStrategy ARRAY = new ArrayTypeStrategy(); /** Type strategy specific for array element. */ - public static final TypeStrategy ARRAY_ELEMENT = - callContext -> - Optional.of( - ((CollectionDataType) callContext.getArgumentDataTypes().get(0)) - .getElementDataType()); + public static final TypeStrategy ARRAY_ELEMENT = new ArrayElementTypeStrategy(); + public static final TypeStrategy ITEM_AT = new ItemAtTypeStrategy(); Review Comment: One is `InputTypeStrategy` the other `TypeStrategy`. One is for input the other for output. -- 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