[fix](nereids) partition prunner evaluates "not x=const" on single node range #29164
This commit is contained in:
@ -458,7 +458,7 @@ public class OneRangePartitionEvaluator
|
||||
@Override
|
||||
public EvaluateRangeResult visitNot(Not not, EvaluateRangeInput context) {
|
||||
EvaluateRangeResult result = evaluateChildrenThenThis(not, context);
|
||||
if (result.isRejectNot()) {
|
||||
if (result.isRejectNot() && !result.result.equals(BooleanLiteral.TRUE)) {
|
||||
Map<Slot, ColumnRange> newRanges = Maps.newHashMap();
|
||||
for (Map.Entry<Slot, ColumnRange> entry : result.childrenResult.get(0).columnRanges.entrySet()) {
|
||||
Slot slot = entry.getKey();
|
||||
|
||||
Reference in New Issue
Block a user