diff --git a/vortex-array/src/array/bool/mod.rs b/vortex-array/src/array/bool/mod.rs index 4bcb9451677..a5a5c13d5a7 100644 --- a/vortex-array/src/array/bool/mod.rs +++ b/vortex-array/src/array/bool/mod.rs @@ -31,7 +31,7 @@ impl BoolArray { pub fn boolean_buffer(&self) -> BooleanBuffer { BooleanBuffer::new( - self.buffer().clone().into(), + self.buffer().clone().into_arrow(), self.metadata().bit_offset, self.len(), ) diff --git a/vortex-array/src/implementation.rs b/vortex-array/src/implementation.rs index e7c24d67328..d8b0562a62f 100644 --- a/vortex-array/src/implementation.rs +++ b/vortex-array/src/implementation.rs @@ -184,13 +184,14 @@ impl ArrayStatistics for T { impl IntoArrayData for T { fn into_array_data(self) -> ArrayData { - let encoding = self.encoding(); + // TODO: move metadata call `Array::View` match let metadata = self.metadata(); - let stats = self.statistics().to_set(); let array = self.into_array(); match array { Array::Data(d) => d, - Array::View(_) => { + Array::View(ref view) => { + let encoding = view.encoding(); + let stats = view.statistics().to_set(); struct Visitor { buffer: Option, children: Vec,