feiniaofeiafei commented on code in PR #67919:
URL: https://github.com/apache/doris/pull/67919#discussion_r4080226073
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/InferPredicateByReplace.java:
##########
@@ -210,7 +236,9 @@ public static Set<Expression> infer(Set<Expression> inputs)
{
}
Map<Expression, Set<Expression>> exprPredicates = new HashMap<>();
for (Expression input : inputs) {
- if (input.anyMatch(expr -> !((ExpressionTrait)
expr).isDeterministic())
+ // Inference can evaluate a predicate on rows that never reach its
original filter.
+ if (input.anyMatch(expr -> expr instanceof NoneMovableFunction
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]