Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Using calcite'sĀ SubstitutionVisitor, we need do a lot work aboutĀ canonicalizing relnode.
Some sql should be simplified.
-- origin sql select deptno, salary, max(salary), min(commission) from emps group by deptno, salary -- simplified select deptno, salary, salary as expr, min(commission) from emps group by deptno, salary
It should be simplified, but I didn't find any rule to simplify it.
This issue is related to CALCITE-4857
Attachments
Issue Links
- links to