Skip to content

Commit 486e7c7

Browse files
committed
mask from parts
Signed-off-by: Alexander Droste <[email protected]>
1 parent d76a564 commit 486e7c7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

encodings/alp/src/alp/decompress.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ pub fn decompress_into_vector<T: ALPFloat>(
5959
patches_offset: usize,
6060
) -> VortexResult<Vector> {
6161
let encoded_primitive = encoded_vector.into_primitive().into_mut();
62-
let validity = encoded_primitive.validity().clone();
63-
64-
let mut alp_buffer = T::ALPInt::downcast(encoded_primitive).into_parts().0;
62+
let (mut alp_buffer, mask) = T::ALPInt::downcast(encoded_primitive).into_parts();
6563
<T>::decode_slice_inplace(alp_buffer.as_mut_slice(), exponents);
6664

6765
// SAFETY: `Buffer<T::ALPInt> and `BufferMut<T>` have the same layout.
@@ -86,9 +84,7 @@ pub fn decompress_into_vector<T: ALPFloat>(
8684
});
8785
}
8886

89-
Ok(PVectorMut::<T>::new(decoded_buffer, validity)
90-
.freeze()
91-
.into())
87+
Ok(PVectorMut::<T>::new(decoded_buffer, mask).freeze().into())
9288
}
9389

9490
/// Decompresses an ALP-encoded array in 1024-element chunks.

0 commit comments

Comments
 (0)