matriv commented on a change in pull request #17450:
URL: https://github.com/apache/flink/pull/17450#discussion_r727127467
##########
File path:
flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/logical/utils/LogicalTypeCasts.java
##########
@@ -319,7 +322,8 @@ private static boolean supportsCasting(
} else if (sourceRoot == STRUCTURED_TYPE || targetRoot ==
STRUCTURED_TYPE) {
return supportsStructuredCasting(
sourceType, targetType, (s, t) -> supportsCasting(s, t,
allowExplicit));
- } else if (sourceRoot == RAW || targetRoot == RAW) {
+ } else if ((sourceRoot == RAW &&
!targetRoot.getFamilies().contains(BINARY_STRING))
Review comment:
Not nit, the method is there, I just missed it, thx!
--
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]