We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8522774 commit 548ac4eCopy full SHA for 548ac4e
vortex-array/src/arrow/executor/struct_.rs
@@ -23,6 +23,7 @@ pub(super) fn to_arrow_struct(
23
fields: &Fields,
24
session: &VortexSession,
25
) -> VortexResult<ArrowArrayRef> {
26
+ let len = array.len();
27
let validity = array.validity_mask();
28
29
let mut field_arrays = Vec::with_capacity(fields.len());
@@ -64,10 +65,11 @@ pub(super) fn to_arrow_struct(
64
65
}
66
67
Ok(Arc::new(unsafe {
- StructArray::new_unchecked(
68
+ StructArray::new_unchecked_with_length(
69
fields.clone(),
70
field_arrays.into(),
71
to_null_buffer(validity),
72
+ len,
73
)
74
}))
75
0 commit comments