wojustme opened a new pull request #2740: URL: https://github.com/apache/calcite/pull/2740
Define a rule to pull up constants project under Sort Related JIRA: https://issues.apache.org/jira/browse/CALCITE-5035 Just like: ``` ===origin rel tree=== LogicalSort(sort0=[$2], sort1=[$0], dir0=[ASC], dir1=[ASC]) LogicalProject(EMPNO=[$0], ENAME=[$1], DEPTNO=[$7]) LogicalFilter(condition=[=($7, 123)]) LogicalTableScan(table=[[CATALOG, SALES, EMP]]) ===optimized rel tree=== LogicalProject(EMPNO=[$0], ENAME=[$1], DEPTNO=[123]) |-LogicalSort(sort0=[$0], dir0=[ASC]) |-LogicalProject(EMPNO=[$0], ENAME=[$1], DEPTNO=[$7]) |-LogicalFilter(condition=[=($7, 123)]) |-LogicalTableScan(table=[[CATALOG, SALES, EMP]]) ``` -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
