UnionBuilder Create Children With Capacity #2523
Labels
arrow
Changes to the arrow crate
enhancement
Any new improvement worthy of a entry in the changelog
good first issue
Good for newcomers
help wanted
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
UnionBuilder
is created with a capacity, but this is only used to pre-allocate its type_ids buffer. The child buffers are created with a capacity of 1.Describe the solution you'd like
We should save this capacity and pass it to
FieldData::new
. In the case of a sparse union, we should pass the maximum of the currently length and the capacity.Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: