GitHub user Jefffrey added a comment to the discussion: Converting a 
Vec<StructArray> to an arrow list type

There's an option of using 
[`concat`](https://docs.rs/arrow/latest/arrow/compute/fn.concat.html) to 
convert `Vec<StructArray>` to a single `StructArray` (well, an `ArrayRef` 
technically) which you could then pass in as the `values` to 
[`FixedSizeList::try_new`](https://docs.rs/arrow/latest/arrow/array/struct.FixedSizeListArray.html#method.try_new),
 which lets you specify the fixed size you want (e.g. 1, or maybe the length of 
each struct array if they are equal)

Though this depends on what your desired output looks like, which I can only 
guess at.

GitHub link: 
https://github.com/apache/arrow-rs/discussions/12413#discussioncomment-19826783

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to