raminqaf commented on code in PR #29073:
URL: https://github.com/apache/flink/pull/29073#discussion_r3922739438
##########
flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/functions/casting/CastRulesTest.java:
##########
@@ -188,6 +188,57 @@ class CastRulesTest {
.build())
.build();
+ /** {@code [1, 2, 3]}, the design's running array value. */
+ private static final Variant VARIANT_INT_ARRAY =
+ Variant.newBuilder()
+ .array()
+ .add(Variant.newBuilder().of(1))
+ .add(Variant.newBuilder().of(2))
+ .add(Variant.newBuilder().of(3))
+ .build();
+
+ /** {@code [1, null, 3]}, an array carrying a JSON null element. */
+ private static final Variant VARIANT_INT_ARRAY_WITH_NULL =
+ Variant.newBuilder()
+ .array()
+ .add(Variant.newBuilder().of(1))
+ .add(Variant.newBuilder().ofNull())
+ .add(Variant.newBuilder().of(3))
+ .build();
+
+ /** {@code ["1", "2"]}, an array of stored strings that a numeric leaf
must not parse. */
+ private static final Variant VARIANT_STRING_ARRAY =
Review Comment:
updated the test
--
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]