From 171c96af6c68718d3575f26731b407a7508c94a4 Mon Sep 17 00:00:00 2001 From: Adam Gutglick Date: Fri, 16 Aug 2024 16:47:41 +0100 Subject: [PATCH] fix test --- vortex-array/src/array/primitive/compute/compare.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/vortex-array/src/array/primitive/compute/compare.rs b/vortex-array/src/array/primitive/compute/compare.rs index c99898e3ee..d8db61ded2 100644 --- a/vortex-array/src/array/primitive/compute/compare.rs +++ b/vortex-array/src/array/primitive/compute/compare.rs @@ -101,11 +101,8 @@ mod test { .iter() .enumerate() .filter_map(|(idx, v)| { - indices_bits - .validity() - .is_valid(idx) - .then(|| v.then_some(idx as u64)) - .flatten() + let valid_and_true = indices_bits.validity().is_valid(idx) & v; + valid_and_true.then_some(idx as u64) }) .collect_vec(); filtered