From a5035832253e2a4d52b533c9660701e7d85197ff Mon Sep 17 00:00:00 2001 From: Robert Kruszewski Date: Tue, 9 Apr 2024 18:08:14 +0100 Subject: [PATCH] beter --- vortex-array/src/array/varbinview/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vortex-array/src/array/varbinview/mod.rs b/vortex-array/src/array/varbinview/mod.rs index 93e2c7b047..a9beb6b0b1 100644 --- a/vortex-array/src/array/varbinview/mod.rs +++ b/vortex-array/src/array/varbinview/mod.rs @@ -221,14 +221,14 @@ impl VarBinViewArray { unsafe { if view.inlined.size > 12 { let arrow_data_buffer = flatten_primitive( - self.data + &self + .data .get(view._ref.buffer_index as usize) .unwrap() .slice( view._ref.offset as usize, (view._ref.size + view._ref.offset) as usize, - )? - .as_ref(), + )?, )?; // TODO(ngates): can we avoid returning a copy? Ok(arrow_data_buffer.typed_data::().to_vec())