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 be23ca2 commit 6a8fac3Copy full SHA for 6a8fac3
vortex-compute/src/arrow/struct_.rs
@@ -18,17 +18,18 @@ impl IntoArrow<ArrayRef> for StructVector {
18
.map(|field| field.clone().into_arrow())
19
.collect::<VortexResult<Vec<ArrayRef>>>()?;
20
21
- // We need to make up the field names since vectors are unnamed.
+ // We need to make up the field names since vectors are unnamed, so we just use the field
22
+ // indices.
23
let fields = Fields::from(
24
(0..arrow_fields.len())
25
.map(|i| Field::new(i.to_string(), arrow_fields[i].data_type().clone(), true))
26
.collect::<Vec<Field>>(),
27
);
28
- Ok(Arc::new(StructArray::new(
29
+ Ok(Arc::new(StructArray::try_new(
30
fields,
31
arrow_fields,
32
validity.into_arrow()?,
- )))
33
+ )?))
34
}
35
0 commit comments