github-actions[bot] commented on code in PR #62527:
URL: https://github.com/apache/doris/pull/62527#discussion_r3088099864
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/util/JoinUtils.java:
##########
@@ -405,7 +405,7 @@ public static boolean canEliminateByFk(LogicalJoin<?, ?>
join, Plan primaryPlan,
public static boolean canEliminateByLeft(LogicalJoin<?, ?> join, DataTrait
rightFuncDeps) {
if (join.getJoinType().isLeftOuterJoin() ||
join.getJoinType().isAsofLeftOuterJoin()) {
Pair<Set<Slot>, Set<Slot>> njHashKeys =
join.extractNullRejectHashKeys();
- if (!join.getOtherJoinConjuncts().isEmpty() || njHashKeys == null)
{
+ if (njHashKeys == null) {
Review Comment:
Blocking: is shared with the normal rewrite, not just (). After removing
the guard here, a plain query like becomes eligible for . That rule simply
rewrites to and never preserves/evaluates the extra predicate, so the query
returns rows instead of raising the error. The relaxation should stay in the
MV path, or this rewrite needs its own semantic checks/tests for observable .
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]