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


##########
core/src/test/resources/sql/planner.iq:
##########
@@ -132,12 +132,13 @@ EnumerableCalc(expr#0..2=[{inputs}], $f0=[$t1], $f1=[$t2])
 
 # [CALCITE-7000] Extend IntersectToSemiJoinRule to support n-way inputs
 !set planner-rules "-EnumerableRules.ENUMERABLE_INTERSECT_RULE,
+  -CoreRules.INTERSECT_TO_DISTINCT,
   +CoreRules.INTERSECT_TO_SEMI_JOIN"
 select a from (values (1), (2), (3), (4), (5)) as t1 (a)
 intersect
 select a from (values (1), (2)) as t2 (a)
 intersect
-select a from (values (1), (4)) as t3 (a);
+select a from (values (1), (4), (null)) as t3 (a);

Review Comment:
   Thank you for your detailed review. The reason for this result is that there 
is no good way to control the order of rules, as you mentioned before. This is 
the only way to do it now, and it may be the same for JdbcTest. I will think 
about what good way to control the order later.



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