diff --git a/vortex-serde/src/layouts/read/mask.rs b/vortex-serde/src/layouts/read/mask.rs index 3db3918f63..8ca0df0c0c 100644 --- a/vortex-serde/src/layouts/read/mask.rs +++ b/vortex-serde/src/layouts/read/mask.rs @@ -88,16 +88,16 @@ impl RowMask { let array = array.as_ref(); - if true_count == array.len() as u64 { - return Ok(Some(array.clone())); - } - let sliced = if self.len() == array.len() { array } else { &slice(array, self.begin, self.end)? }; + if true_count == sliced.len() as u64 { + return Ok(Some(sliced.clone())); + } + let bitset = self .values .to_bitset()