jnh5y commented on code in PR #23622:
URL: https://github.com/apache/flink/pull/23622#discussion_r1380387234
##########
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:
What is the difference between this class and `InputTypeStrategies`?
E.g., why do two of the strategies end up here and one in the other?
--
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]