chunweilei commented on a change in pull request #2408:
URL: https://github.com/apache/calcite/pull/2408#discussion_r623551192
##########
File path:
core/src/test/resources/org/apache/calcite/test/SqlToRelConverterTest.xml
##########
@@ -142,14 +145,15 @@ LogicalAggregate(group=[{}], EXPR$0=[COUNT()])
<TestCase name="testAliasInHaving">
<Resource name="plan">
<![CDATA[
-LogicalFilter(condition=[>($0, 1)])
- LogicalAggregate(group=[{}], E=[COUNT()])
- LogicalProject(EMPNO=[$0])
- LogicalTableScan(table=[[CATALOG, SALES, EMP]])
+LogicalProject(ENAME=[$0], E=[$1], D=[$1])
+ LogicalFilter(condition=[>($1, 2)])
+ LogicalAggregate(group=[{0}], E=[COUNT()])
+ LogicalProject(ENAME=[$1], EMPNO=[$0], DEPTNO=[$7])
+ LogicalTableScan(table=[[CATALOG, SALES, EMP]])
]]>
Review comment:
The plan seems not right. There are two aggregates in sql, but only one
in plan. 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:
[email protected]