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/10/17 12:55:51 UTC

[GitHub] [calcite] jinxing64 commented on a change in pull request #1515: fix some correlated subquery case's comment error

jinxing64 commented on a change in pull request #1515: fix some correlated subquery case's comment error
URL: https://github.com/apache/calcite/pull/1515#discussion_r335986511
 
 

 ##########
 File path: core/src/main/java/org/apache/calcite/rel/rules/SubQueryRemoveRule.java
 ##########
 @@ -235,9 +235,9 @@ private RexNode rewriteSome(RexSubQuery e, Set<CorrelationId> variablesSet,
       //   end as v
       // from emp as e
       // left outer join (
-      //   select max(deptno) as m, count(*) as c, count(deptno) as d,
+      //   select name, max(deptno) as m, count(*) as c, count(deptno) as d,
       //       "alwaysTrue" as indicator
-      //   group by name from emp) as q on e.name = q.name
+      //   from emp group by name) as q on e.name = q.name
 
 Review comment:
   The main idea of this change is to add a `name` in the select list, because `name` is referenced in the join condition.
   Yes, this change seems too small, shall we hold ?

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