diff --git a/vortex-cuda/benches/bitpacked_cuda.rs b/vortex-cuda/benches/bitpacked_cuda.rs index 51a98337d7d..ef271fbaf80 100644 --- a/vortex-cuda/benches/bitpacked_cuda.rs +++ b/vortex-cuda/benches/bitpacked_cuda.rs @@ -94,8 +94,8 @@ where }) .collect(); - let primitive_array = PrimitiveArray::new(Buffer::from(values), NonNullable); - BitPackedArray::encode(primitive_array.as_ref(), bit_width) + let primitive_array = PrimitiveArray::new(Buffer::from(values), NonNullable).to_array(); + BitPackedArray::encode(&primitive_array, bit_width) .vortex_expect("failed to create BitPacked array with patches") }