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

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   <!--
   A clear and concise description of what the problem is. Ex. I'm always 
frustrated when [...] 
   (This section helps Arrow developers understand the context and *why* for 
this feature, in addition to  the *what*)
   -->
   
   As part of https://github.com/apache/arrow-rs/issues/1799 strongly typed 
ArrayData abstractions were added that allow constructing arrays from their 
constituent parts, and destructuring arrays back into their parts. Whilst it 
looks like we won't be moving ahead with a strongly typed ArrayData 
abstraction, these APIs are powerful and should be ported across to the 
corresponding Array implementation.
   
   **Describe the solution you'd like**
   <!--
   A clear and concise description of what you want to happen.
   -->
   
   Each of the various `Array` should have:
   
   * An unsafe `new_unchecked` that constructs it from raw `ScalarBuffer`, 
`OffsetBuffer`, etc...
   * A safe `try_new` method that performs validation and returns a `Result`
   * An `into_parts` method that returns the constituent parts that can be fed 
to `new_unchecked`
   * Methods should return `&ScalarBuffer<T>`, `&BooleanBuffer`, etc... instead 
of `&[T]`, `&[u8]` etc...
   
   **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