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 2019/04/13 01:04:14 UTC

[GitHub] [calcite] chunweilei commented on a change in pull request #1161: [CALCITE-2986] Wrong results with =ANY subquery

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:
users@infra.apache.org


With regards,
Apache Git Services