mihaibudiu commented on code in PR #4997:
URL: https://github.com/apache/calcite/pull/4997#discussion_r3383013072


##########
core/src/test/resources/sql/sub-query.iq:
##########
@@ -8168,6 +8168,103 @@ SELECT deptno FROM dept WHERE 1000.00 >
 
 !ok
 
+# [CALCITE-7584] RelDecorrelator produces incorrect results for correlated 
LATERAL sub-queries with window functions
+# Correlated LATERAL sub-query with a window expression.
+# The equality predicate between the inner and outer query must remain applied
+# after decorrelation.
+SELECT e.ename, d.deptno, d.m

Review Comment:
   This link lives only in the PR (and will eventually expire), but a comment 
saying "this was validated using postgres" lives in the code forever.



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