[fix](nereids) patition prune is affected by non-paritition-key condition (#26873)
stop propagate Context.childrenContainsNonInterestedSlots if expr changed to TRUE
This commit is contained in:
@ -109,7 +109,9 @@ public class TryEliminateUninterestedPredicates extends DefaultExpressionRewrite
|
||||
public Expression visitAnd(And and, Context parentContext) {
|
||||
Expression left = and.left();
|
||||
Context leftContext = new Context();
|
||||
Expression newLeft = this.visit(left, leftContext);
|
||||
// Expression newLeft = this.visit(left, leftContext);
|
||||
Expression newLeft = left.accept(this, leftContext);
|
||||
|
||||
if (leftContext.childrenContainsNonInterestedSlots) {
|
||||
newLeft = BooleanLiteral.TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user