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/29 14:01:20 UTC

[GitHub] [calcite] jinxing64 edited a comment on issue #1532: [CALCITE-3448] AggregateOnProjectToAggregateUnifyRule ignores Project…

jinxing64 edited a comment on issue #1532: [CALCITE-3448] AggregateOnProjectToAggregateUnifyRule ignores Project…
URL: https://github.com/apache/calcite/pull/1532#issuecomment-547434147
 
 
   I tested the test case you provided @DonnyZone 
   ```
   MV:
   select empid, deptno, name, count(*) from emps
   group by empid, deptno, name
   Query:
   select name, name, count(*) from emps group by name, empid
   ```
   The result is correct as below:
   ``` 
   EnumerableCalc(expr#0..2=[{inputs}], name=[$t1], name0=[$t1], EXPR$1=[$t2])
      EnumerableAggregate(group=[{0, 2}], EXPR$2=[$SUM0($3)])
        EnumerableTableScan(table=[[hr, m0]])
   ```

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