From ebb42c59e88cd9e8876bc47b70c5d6a0dfa6a6df Mon Sep 17 00:00:00 2001 From: Robert Kruszewski Date: Tue, 26 Mar 2024 18:48:04 +0000 Subject: [PATCH] fix --- vortex-ree/src/compress.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vortex-ree/src/compress.rs b/vortex-ree/src/compress.rs index 21d143eae2..4cd72429ef 100644 --- a/vortex-ree/src/compress.rs +++ b/vortex-ree/src/compress.rs @@ -160,7 +160,7 @@ pub fn ree_decode_primitive< mod test { use vortex::array::downcast::DowncastArrayBuiltin; use vortex::array::primitive::PrimitiveArray; - use vortex::array::IntoArray; + use vortex::array::{Array, IntoArray}; use vortex::validity::{ArrayValidity, Validity}; use crate::compress::{ree_decode, ree_encode}; @@ -179,7 +179,7 @@ mod test { fn decode() { let ends = PrimitiveArray::from(vec![2, 5, 10]); let values = PrimitiveArray::from(vec![1i32, 2, 3]); - let decoded = ree_decode(&ends, &values, None, 0, 0).unwrap(); + let decoded = ree_decode(&ends, &values, None, 0, 10).unwrap(); assert_eq!( decoded.typed_data::(), @@ -207,7 +207,7 @@ mod test { arr.values().as_primitive(), arr.validity(), 0, - 0, + arr.len(), ) .unwrap();