asolimando commented on code in PR #4754:
URL: https://github.com/apache/calcite/pull/4754#discussion_r2702335058


##########
core/src/test/resources/sql/new-decorr.iq:
##########
@@ -42,4 +42,29 @@ SELECT * FROM t0 WHERE t0a <
 
 !ok
 
+# [CALCITE-7382] The TopDownGeneralDecorrelator returns an error result when a 
subquery contains a LIMIT 1
+!use scott
+SELECT dname, (SELECT emp.comm FROM "scott".emp where dept.deptno = emp.deptno 
ORDER BY emp.comm limit 1) FROM "scott".dept;

Review Comment:
   ```suggestion
   SELECT dname, (SELECT emp.comm FROM "scott".emp where dept.deptno = 
emp.deptno ORDER BY emp.comm LIMIT 1) FROM "scott".dept;
   ```



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