raminqaf commented on code in PR #29311:
URL: https://github.com/apache/flink/pull/29311#discussion_r4153452952
##########
flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/logical/utils/LogicalTypeCasts.java:
##########
@@ -403,6 +403,33 @@ public final class LogicalTypeCasts {
.explicitFromFamily(EXACT_NUMERIC, CHARACTER_STRING)
.build();
+ //
-----------------------------------------------------------------------------------------
+ // VARIANT type
+ //
-----------------------------------------------------------------------------------------
+
+ // Only a type with a VARIANT kind that holds its value without loss
casts to VARIANT.
+ castTo(VARIANT)
Review Comment:
Good point. I added a test and a docs sentence rather than rejecting it.
Byte equality is not specific to the cast.
--
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]