Skip to content

Commit

Permalink
Fix bigint range (oap-project#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
rui-mo authored and zhejiangxiaomai committed Sep 16, 2022
1 parent 602c0d6 commit d77e6aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions velox/type/Filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,8 @@ class BigintRange final : public Filter {
bool upperExclusive,
bool nullAllowed)
: Filter(true, nullAllowed, FilterKind::kBigintRange),
lower_(lowerExclusive ? lower - 1 : lower),
upper_(upperExclusive ? upper + 1 : upper),
lower_(lowerExclusive ? lower + 1 : lower),
upper_(upperExclusive ? upper - 1 : upper),
lower32_(std::max<int64_t>(lower, std::numeric_limits<int32_t>::min())),
upper32_(std::min<int64_t>(upper, std::numeric_limits<int32_t>::max())),
lower16_(std::max<int64_t>(lower, std::numeric_limits<int16_t>::min())),
Expand Down

0 comments on commit d77e6aa

Please sign in to comment.