Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
924060929 committed Dec 20, 2024
1 parent b98ae60 commit bbf9f34
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,11 @@ public RangeSet<MultiColumnBound> visitNot(Not not, Void context) {
SlotReference slot = (SlotReference) ((IsNull) child).child();
int slotId = slot.getExprId().asInt();
if (slotIds.contains(slotId)) {
Range<ColumnBound> singleton = ColumnBound.singleton(new NullLiteral(child.getDataType()));
return toRangeSet(slot, singleton, BoundType.OPEN, BoundType.CLOSED);
Range<ColumnBound> columnRange = ColumnBound.range(
new NullLiteral(child.getDataType()), BoundType.OPEN,
new MaxLiteral(child.getDataType()), BoundType.CLOSED
);
return toRangeSet(slot, columnRange, BoundType.OPEN, BoundType.CLOSED);
}
}
return null;
Expand Down

0 comments on commit bbf9f34

Please sign in to comment.