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:13:11 UTC

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

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

 ##########
 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:
   @chunweilei `=ANY/SOME` rewrite is done in `RexSubquery.some`. Please look at `core/src/main/java/org/apache/calcite/rex/RexSubQuery.java` changes

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