File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments