matriv commented on a change in pull request #18030:
URL: https://github.com/apache/flink/pull/18030#discussion_r763376832
##########
File path:
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/CastRuleProvider.java
##########
@@ -213,4 +217,11 @@ private CastRuleProvider addRule(CastRule<?, ?> rule) {
.findFirst()
.orElse(null);
}
+
+ private LogicalType unwrapDistinct(LogicalType logicalType) {
+ if (logicalType.is(LogicalTypeRoot.DISTINCT_TYPE)) {
Review comment:
Hm, on second thought this must be done before actually resolving any
rule, so if it's an `ARRAY` then we don't want to extract the underlying type.
--
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]