xiedeyantu commented on code in PR #5014:
URL: https://github.com/apache/calcite/pull/5014#discussion_r3395519443


##########
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:
   If you have time, please log a Jira ticket.



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