Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.20.0
Description
For sql:
SELECT empno, count(distinct ename) approx_count_distinct(ename) FROM emp GROUP BY empno
After sql-to-rel conversion, the plan is:
LogicalProject(EMPNO=[$0], EXPR$1=[$1], EXPR$2=[$1]) LogicalAggregate(group=[{0}], EXPR$1=[COUNT(DISTINCT $1)]) LogicalProject(EMPNO=[$0], ENAME=[$1]) LogicalTableScan(table=[[CATALOG, SALES, EMP]])
Attachments
Issue Links
- links to