iwanttobepowerful commented on code in PR #5014:
URL: https://github.com/apache/calcite/pull/5014#discussion_r3400263808
##########
core/src/test/resources/sql/new-decorr.iq:
##########
@@ -471,4 +471,29 @@ FROM (SELECT ARRAY[1,2,3] as x) s;
!ok
+# [CALCITE-7596] TopDownGeneralDecorrelator omits rewriting the ORDER BY
clause in window function within correlated subquery
+SELECT empno, (SELECT row_number() OVER (PARTITION BY dname ORDER BY emp.sal)
FROM dept WHERE dept.deptno = emp.deptno) as rn FROM emp;
+!if (use_new_decorr) {
Review Comment:
CALCITE-7587
--
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]