NobiGo commented on code in PR #4308: URL: https://github.com/apache/calcite/pull/4308#discussion_r2048037576
########## core/src/test/resources/sql/set-op.iq: ########## @@ -258,4 +258,32 @@ UNION (2 rows) !ok + +# [CALCITE-6955] PruneEmptyRules does not handle the all attribute of SetOp correctly +select * from (values (10, 1), (30, 3), (30, 3)) as t (x, y) +union +select * from (values (20, 2)) as t (x, y) where x > 30; ++----+---+ +| X | Y | ++----+---+ +| 10 | 1 | +| 30 | 3 | ++----+---+ +(2 rows) + Review Comment: Yes, this is different. In RelOptRulesTest, we have actively added the plan. For the iq file, we are using the default optimization plan. -- 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]
