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


##########
flink-table/flink-table-planner/src/test/resources/org/apache/flink/table/planner/plan/batch/sql/join/NestedLoopSemiAntiJoinTest.xml:
##########
@@ -917,8 +917,8 @@ LogicalProject(rk=[$2])
 NestedLoopJoin(joinType=[LeftSemiJoin], where=[((b = rk) AND (a <> d))], 
select=[a, b, c], build=[right])
 :- TableSourceScan(table=[[default_catalog, default_database, l]], fields=[a, 
b, c])
 +- Exchange(distribution=[broadcast])
-   +- Calc(select=[w0$o0 AS rk, d])
-      +- OverAggregate(partitionBy=[d], orderBy=[e ASC], window#0=[RANK(*) AS 
w0$o0 RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW], select=[d, e, w0$o0])
+   +- Calc(select=[rk, d])
+      +- OverAggregate(partitionBy=[d], orderBy=[e ASC], window#0=[RANK(*) AS 
rk RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW], select=[d, e, rk])

Review Comment:
   here and in other places result of fix 
https://issues.apache.org/jira/browse/CALCITE-7369  (ProjectToWindowRule loses 
column alias when optimizing OVER window queries) 



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