snuyanzin commented on code in PR #28053:
URL: https://github.com/apache/flink/pull/28053#discussion_r3170862289
##########
flink-table/flink-table-planner/src/test/resources/org/apache/flink/table/planner/plan/batch/sql/UnnestTest.xml:
##########
@@ -645,8 +688,8 @@ LogicalProject(id=[$0], k=[$2], v=[$3], pos=[$4])
</Resource>
<Resource name="optimized exec plan">
<![CDATA[
-Calc(select=[id, f0 AS k, f1 AS v, ORDINALITY AS pos])
-+- Correlate(invocation=[$UNNEST_ROWS_WITH_ORDINALITY$1($cor0.map_data)],
correlate=[table($UNNEST_ROWS_WITH_ORDINALITY$1($cor0.map_data))],
select=[id,map_data,f0,f1,ORDINALITY], rowType=[RecordType(INTEGER id,
(VARCHAR(2147483647), VARCHAR(2147483647)) MAP map_data, VARCHAR(2147483647)
f0, VARCHAR(2147483647) f1, INTEGER ORDINALITY)], joinType=[INNER])
+Calc(select=[id, KEY AS k, VALUE AS v, ORDINALITY AS pos])
++- Correlate(invocation=[$UNNEST_ROWS_WITH_ORDINALITY$1($cor0.map_data)],
correlate=[table($UNNEST_ROWS_WITH_ORDINALITY$1($cor0.map_data))],
select=[id,map_data,KEY,VALUE,ORDINALITY], rowType=[RecordType(INTEGER id,
(VARCHAR(2147483647), VARCHAR(2147483647)) MAP map_data, VARCHAR(2147483647)
KEY, VARCHAR(2147483647) VALUE, INTEGER ORDINALITY)], joinType=[INNER])
+- TableSourceScan(table=[[default_catalog, default_database, MyTable]],
fields=[id, map_data])
Review Comment:
this is a change in exec plan
do we have a store restore test?
if no, then better to have with plan generated before the change and check
that after that the query still able to process
--
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]