Skip to content

Commit 7dde049

Browse files
committed
address
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
1 parent 40d6a98 commit 7dde049

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • vortex-array/src/arrays/patched/compute

vortex-array/src/arrays/patched/compute/filter.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ impl FilterReduce for Patched {
1818
//
1919
// This is helpful when we have a very selective filter that is clustered to a small
2020
// range.
21-
let (chunk_start, chunk_stop) = match mask.indices() {
21+
let (chunk_start, chunk_stop) = match mask.slices() {
2222
AllOr::All | AllOr::None => {
2323
// This is handled as the precondition to this method, see the FilterReduce
2424
// documentation.
2525
unreachable!("mask must be a MaskValues here")
2626
}
27-
AllOr::Some(indices) => {
28-
let first = indices[0];
29-
let last = indices[indices.len() - 1];
27+
AllOr::Some(slices) => {
28+
let (first, _) = slices[0];
29+
let (_, last) = slices[slices.len() - 1];
3030

3131
(first / 1024, last.div_ceil(1024))
3232
}

0 commit comments

Comments
 (0)