xiedeyantu commented on code in PR #4366:
URL: https://github.com/apache/calcite/pull/4366#discussion_r2086269218
##########
core/src/test/java/org/apache/calcite/test/RelOptRulesTest.java:
##########
@@ -10511,7 +10511,157 @@ private void
checkLoptOptimizeJoinRule(LoptOptimizeJoinRule rule) {
+ "SELECT mgr, comm FROM emp WHERE comm = 5\n";
sql(sql)
.withPreRule(CoreRules.PROJECT_FILTER_TRANSPOSE)
- .withRule(CoreRules.MINUS_TO_FILTER)
+ .withRule(CoreRules.MINUS_FILTER_TO_FILTER)
+ .check();
+ }
+
+ /** Test case of
+ * <a
href="https://issues.apache.org/jira/browse/CALCITE-7002">[CALCITE-7002]
+ * Create an optimization rule to eliminate UNION
+ * from the same source with different filters</a>. */
+ @Test void testMinusToFilterRule3() {
Review Comment:
Done!
--
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]