xiedeyantu commented on code in PR #4304:
URL: https://github.com/apache/calcite/pull/4304#discussion_r2043177051


##########
core/src/test/resources/org/apache/calcite/test/RelOptRulesTest.xml:
##########
@@ -18055,6 +18055,65 @@ LogicalProject(EMPNO=[$0], ENAME=[$1], JOB=[$2], 
MGR=[$3], HIREDATE=[$4], SAL=[$
             LogicalFilter(condition=[AND(<(+($0, 50), 20), >=($cor0.DEPTNO, 
$9))])
               LogicalProject(EMPNO=[$0], ENAME=[$1], JOB=[$2], MGR=[$3], 
HIREDATE=[$4], SAL=[$5], COMM=[$6], DEPTNO=[$7], SLACKER=[$8], $f9=[+(30, $7)])
                 LogicalTableScan(table=[[CATALOG, SALES, EMP]])
+]]>
+    </Resource>
+  </TestCase>
+  <TestCase name="testUnionEliminatorRule">

Review Comment:
   As mihai said, I tried both and didn't find a way to validate the rule 
directly via SQL. PruneEmptyRule will remove setops that have only one child.



-- 
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]

Reply via email to