You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2021/10/07 18:14:49 UTC

[GitHub] [calcite] jamesstarr commented on a change in pull request #2571: [CALCITE-4833] Complex nested correlated subquery failed.

jamesstarr commented on a change in pull request #2571:
URL: https://github.com/apache/calcite/pull/2571#discussion_r724422178



##########
File path: core/src/test/java/org/apache/calcite/test/enumerable/EnumerableCorrelateTest.java
##########
@@ -168,6 +168,41 @@
             "empid=200");
   }
 
+
+  @Test void complexNestedCorrelatedSubquery() {
+    //final String sql = "SELECT t1.empid FROM emps t1 LEFT JOIN emps t2 ON t2.empid<=100";
+
+    String sql = "SELECT t1.empid FROM emps t1 LEFT JOIN emps t2 ON (SELECT t2.empid)<=101";
+
+    tester(false, new HrSchema())
+        .query(sql)
+        .returnsUnordered(

Review comment:
       Shouldn't this have 12 results




-- 
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: commits-unsubscribe@calcite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org