chunweilei commented on a change in pull request #1161: [CALCITE-2986] Wrong 
results with =ANY subquery
URL: https://github.com/apache/calcite/pull/1161#discussion_r275098477
 
 

 ##########
 File path: core/src/test/java/org/apache/calcite/test/RelOptRulesTest.java
 ##########
 @@ -4111,6 +4111,12 @@ private Sql checkSubQuery(String sql) {
     checkSubQuery(sql).withLateDecorrelation(true).check();
   }
 
+  @Test public void testSomeWithEquality() {
+    final String sql = "select * from emp e1\n"
+        + "  where e1.deptno = SOME (select deptno from dept)";
+    checkSubQuery(sql).withLateDecorrelation(true).check();
+  }
 
 Review comment:
   Where and how do you deal with `=ANY` since your commit message looks like 
handle it? Do I miss something?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to