Skip to content

Commit

Permalink
fix: remove redundant bit_util::ceil (#6766)
Browse files Browse the repository at this point in the history
  • Loading branch information
miroim authored Nov 21, 2024
1 parent baf7f1b commit 853626e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arrow-select/src/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -517,14 +517,14 @@ fn filter_bits(buffer: &BooleanBuffer, predicate: &FilterPredicate) -> Buffer {
unsafe { MutableBuffer::from_trusted_len_iter_bool(bits).into() }
}
IterationStrategy::SlicesIterator => {
let mut builder = BooleanBufferBuilder::new(bit_util::ceil(predicate.count, 8));
let mut builder = BooleanBufferBuilder::new(predicate.count);
for (start, end) in SlicesIterator::new(&predicate.filter) {
builder.append_packed_range(start + offset..end + offset, src)
}
builder.into()
}
IterationStrategy::Slices(slices) => {
let mut builder = BooleanBufferBuilder::new(bit_util::ceil(predicate.count, 8));
let mut builder = BooleanBufferBuilder::new(predicate.count);
for (start, end) in slices {
builder.append_packed_range(*start + offset..*end + offset, src)
}
Expand Down

0 comments on commit 853626e

Please sign in to comment.