vortex_compute/arrow/
null.rs1use arrow_array::Array;
5use arrow_array::NullArray;
6use vortex_error::VortexResult;
7use vortex_vector::VectorOps;
8use vortex_vector::null::NullVector;
9
10use crate::arrow::IntoArrow;
11use crate::arrow::IntoVector;
12
13impl IntoArrow for NullVector {
14 type Output = NullArray;
15
16 fn into_arrow(self) -> VortexResult<Self::Output> {
17 Ok(NullArray::new(self.len()))
18 }
19}
20
21impl IntoVector for &NullArray {
22 type Output = NullVector;
23
24 fn into_vector(self) -> VortexResult<Self::Output> {
25 Ok(NullVector::new(self.len()))
26 }
27}