[fix](nereids) partition prunner evaluates "not x=const" on single node range #29164

This commit is contained in:
minghong
2023-12-31 08:50:16 +08:00
committed by GitHub
parent 5b503e0a7b
commit ac636a2aba
2 changed files with 37 additions and 1 deletions

View File

@ -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();