feiniaofeiafei commented on code in PR #67919:
URL: https://github.com/apache/doris/pull/67919#discussion_r4080244922
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/UnequalPredicateInfer.java:
##########
@@ -448,7 +448,8 @@ public Set<Expression> chooseInputPredicates(Relation[][]
chosen) {
clear(chosen, left, right, type);
} else if (deduced[left][right] != type) {
keep[i] = true;
- set(deduced, left, right, Relation.EQ);
+ // Preserve the relation of the retained predicate; an
inequality is not an equality.
+ set(deduced, left, right, type);
Review Comment:
fixed
--
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]