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


##########
flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/plan/nodes/exec/common/CalcTestPrograms.java:
##########
@@ -816,4 +816,23 @@ private static SinkTestStep stringSink(final String name, 
final Row... rows) {
                                     + REUSED
                                     + ") x JOIN t y ON x.s = y.s")
                     .build();
+
+    public static final TableTestProgram CALC_MAP_ITEM_ACCESS =
+            TableTestProgram.of(
+                            "calc-map-item-access",
+                            "validates map element access over a non-generic 
MapData")
+                    .setupTableSource(
+                            SourceTestStep.newBuilder("t")
+                                    .addSchema("x INT")
+                                    .producedValues(Row.of(1))
+                                    .build())
+                    .setupTableSink(
+                            SinkTestStep.newBuilder("sink_t")
+                                    .addSchema("v STRING")
+                                    .consumedValues(Row.of("1"))
+                                    .build())
+                    .runSql(
+                            "INSERT INTO sink_t SELECT "
+                                    + "MAP_FROM_ENTRIES(ARRAY[ROW('a', CAST(x 
AS STRING))])['a'] FROM t")

Review Comment:
   I don't think it would change anything
   the reason is that we don't cover anything else in codegen with this 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]

Reply via email to