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

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   
   I have an aggregation function that sorts a number of small arrays in 
parallel and then in the final aggregation step produces a big sorted array 
from all the smaller sorted arrays. 
   
   Currently I am doing a `concat`, that creates a big array from the smaller 
sorted arrays, followed by a `sort` that creates another array,  it would be 
probably more efficient if there was a way to merge the already sorted arrays 
to a final array in one step.
   
   **Describe the solution you'd like**
   
   Would be nice to have a function like:
   
   ```rust
   pub fn merge_sort(arrays: &[&dyn Array], options: Option<SortOption>) -> 
Result<ArrayRef, ArrowError>;
   ```
   
   that takes a number of sorted arrays and produces a sorted array by merging 
them.
   
   <!--
   A clear and concise description of what you want to happen.
   -->
   
   **Describe alternatives you've considered**
   
   I am doing `concat` followed by `sort`.
   <!--
   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