Skip to content

Commit 548ac4e

Browse files
committed
Add more arrow execution
Signed-off-by: Nicholas Gates <[email protected]>
1 parent 8522774 commit 548ac4e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vortex-array/src/arrow/executor/struct_.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ pub(super) fn to_arrow_struct(
2323
fields: &Fields,
2424
session: &VortexSession,
2525
) -> VortexResult<ArrowArrayRef> {
26+
let len = array.len();
2627
let validity = array.validity_mask();
2728

2829
let mut field_arrays = Vec::with_capacity(fields.len());
@@ -64,10 +65,11 @@ pub(super) fn to_arrow_struct(
6465
}
6566

6667
Ok(Arc::new(unsafe {
67-
StructArray::new_unchecked(
68+
StructArray::new_unchecked_with_length(
6869
fields.clone(),
6970
field_arrays.into(),
7071
to_null_buffer(validity),
72+
len,
7173
)
7274
}))
7375
}

0 commit comments

Comments
 (0)