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: [email protected] With regards, Apache Git Services
