-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
While working with various arrays and builders in DataFusion one thing that we often want to do is convert between an array and some modifiable version of it (for example, in StringView trim it would be nice to just modify existing views rather than mutate them)
I think in general it would be good to use the various Builder APIs for this
Describe the solution you'd like
I would like all the Arrays to have equivalent methods to PrimitiveArray::into_builder().
Like I want to be able to do
let array: StringViewArray = ...;
let builder = array.into_builder();
// mutate the builder (more APIs TBD)
// recreate the array
let array = builder.build()Similarly it would be nice to do something similar with BooleanBuiler, possibly other arrays
Describe alternatives you've considered
Additional context
Example DataFusion PRs: apache/datafusion#12395