alamb opened a new issue, #6430:
URL: https://github.com/apache/arrow-rs/issues/6430

   **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()`](https://docs.rs/arrow/latest/arrow/array/struct.PrimitiveArray.html#method.into_builder).
 
   
   Like I want to be able to do
   ```rust
   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**
   <!--
   A clear and concise description of any alternative solutions or features 
you've considered.
   -->
   
   **Additional context**
   <!--
   Add any other context or screenshots about the feature request here.
   -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to