stenlarsson opened a new pull request, #48462:
URL: https://github.com/apache/arrow/pull/48462

   ### Rationale for this change
   
   Aggregators like `first` and `last` are unusable in Ruby because they don't 
work when the execution plan is executed using multiple threads.
   
   ### What changes are included in this PR?
   
   This adds the `ThreadPool` class to be able create a thread pool with a 
single thread. This can then be passed when creating an `ExecuteContext`, which 
in turn can be passed when creating an `ExecutePlan`.
   
   ### Are these changes tested?
   
   A Ruby test that shows that the `first` aggregator works.
   
   ### Are there any user-facing changes?
   
   A new `GArrowThreadPool` class, and changed signatures of the functions 
`garrow_execute_context_new` and `garrow_execute_plan_new`. However since the 
new arguments are nullable, it is backwards compatible for the Ruby API.
   
   **This PR includes breaking changes to public APIs.**
   


-- 
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