You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Ruby] Allow disabling threads for execution plans #41364
I think if we were able to create an ExecuteContext with such a thread pool in Ruby, and then pass that to the constructor of ExecutePlan we should be good, right?
This issue has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this issue will be closed in 14 days. If this improvement is still desired but has no current owner, please add the 'Status: needs champion' label.
Activity
kou commentedon Apr 24, 2024
It makes sense.
We need to implement the bindings of
arrow::acero::QueryOptionsbindings as the first for this:arrow/cpp/src/arrow/acero/exec_plan.h
Lines 509 to 605 in d7a5777
We should create a separated issue for this to work on this step by step.
stenlarsson commentedon Apr 25, 2024
Wouldn't that mean we have to implement bindings for the whole "declaration" API?
I don't fully understand the code, but it seems that when
use_threadsis false it creates a thread pool with only one thread:arrow/cpp/src/arrow/acero/exec_plan.cc
Lines 769 to 776 in de3cdc0
The size of the thread pool is then checked by the GroupByNode:
arrow/cpp/src/arrow/acero/groupby_aggregate_node.cc
Line 189 in 32885c9
I think if we were able to create an
ExecuteContextwith such a thread pool in Ruby, and then pass that to the constructor ofExecutePlanwe should be good, right?kou commentedon Apr 25, 2024
Ah,
ExecPlandoesn't seearrow::acero::QueryOptions::use_threads...Our options:
Add support for ordered aggregation in parallel in C++
GH-32884: [C++] Add ordered aggregation #34311 is the PR that implements ordered aggregation.
Add support for the declaration API
Add
Arrow::ThreadPooland use it withArrow::ExecutePlanWe also need to improve
Arrow::ExecuteContextand so on.thisisnic commentedon Nov 18, 2025
This issue has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this issue will be closed in 14 days. If this improvement is still desired but has no current owner, please add the 'Status: needs champion' label.
stenlarsson commentedon Dec 4, 2025
I will try to implement this myself.
GH-41364: [GLib][Ruby] Allow passing thread pool to ExecutePlan (#48462)
kou commentedon Dec 16, 2025
Issue resolved by pull request 48462
#48462
apacheGH-41364: [GLib][Ruby] Allow passing thread pool to ExecutePlan (…