Skip to content

Commit 475582e

Browse files
committed
Remove selection mask
Signed-off-by: Nicholas Gates <[email protected]>
1 parent 7a86a31 commit 475582e

File tree

1 file changed

+9
-0
lines changed
  • vortex-array/src/arrays/primitive/vtable

1 file changed

+9
-0
lines changed

vortex-array/src/arrays/primitive/vtable/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
use vortex_buffer::{Alignment, Buffer, ByteBuffer};
55
use vortex_dtype::{DType, PType, match_each_native_ptype};
66
use vortex_error::{VortexResult, vortex_bail};
7+
use vortex_vector::Vector;
8+
use vortex_vector::primitive::PVector;
79

810
use crate::arrays::PrimitiveArray;
11+
use crate::execution::ExecutionCtx;
912
use crate::serde::ArrayChildren;
1013
use crate::validity::Validity;
1114
use crate::vtable::{NotSupported, VTable, ValidityVTableFromValidityHelper};
@@ -99,6 +102,12 @@ impl VTable for PrimitiveVTable {
99102
Ok(PrimitiveArray::new(buffer, validity))
100103
})
101104
}
105+
106+
fn execute(array: &Self::Array, _ctx: &mut dyn ExecutionCtx) -> VortexResult<Vector> {
107+
Ok(match_each_native_ptype!(array.ptype(), |T| {
108+
PVector::new(array.buffer::<T>(), array.validity_mask()).into()
109+
}))
110+
}
102111
}
103112

104113
#[derive(Clone, Debug)]

0 commit comments

Comments
 (0)