NobiGo commented on code in PR #4308: URL: https://github.com/apache/calcite/pull/4308#discussion_r2048038107
########## 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: If this plan doesn't take effect, this SQL statement should still be able to execute successfully. -- 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]
