snuyanzin commented on code in PR #28733:
URL: https://github.com/apache/flink/pull/28733#discussion_r3574206608


##########
flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/functions/CastFunctionITCase.java:
##########
@@ -132,9 +133,65 @@ Stream<TestSetSpec> getTestSetSpecs() {
         specs.addAll(numericBounds());
         specs.addAll(constructedTypes());
         specs.addAll(bitmapCasts());
+        specs.addAll(variantCasts());
         return specs.stream();
     }
 
+    private static List<TestSetSpec> variantCasts() {
+        // A variant is produced with PARSE_JSON so that the source column 
stays a STRING literal;
+        // there is no VARIANT literal to feed a source column directly. A 
JSON integer is stored in
+        // the smallest integer type that fits (42 -> TINYINT), and numeric 
casts are lenient, so it
+        // still widens to INT.
+        return Collections.singletonList(

Review Comment:
   ```suggestion
           return List.of(
   ```



-- 
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]

Reply via email to