Skip to content

[VL] Adding context executor#11648

Open
zhouyuan wants to merge 1 commit intoapache:mainfrom
zhouyuan:wip_ctx_executor
Open

[VL] Adding context executor#11648
zhouyuan wants to merge 1 commit intoapache:mainfrom
zhouyuan:wip_ctx_executor

Conversation

@zhouyuan
Copy link
Member

@zhouyuan zhouyuan commented Feb 24, 2026

What changes are proposed in this pull request?

This patch adds the context executor for Velox backend.
By default it's disabled

How was this patch tested?

pass GHA

Was this patch authored or co-authored using generative AI tooling?

Signed-off-by: Yuan <yuanzhou@apache.org>
@github-actions github-actions bot added the DOCS label Feb 25, 2026
@zhouyuan zhouyuan marked this pull request as ready for review February 25, 2026 12:36
@FelixYBW
Copy link
Contributor

Does the patch enable multiple thread execution in Velox? if so let's mark it as experimental

int cpuThreads = veloxCfg_->get<int32_t>(kVeloxCpuExecutorThreads, kVeloxCpuExecutorThreadsDefault);
folly::Executor* executor = nullptr;
if (cpuThreads > 0) {
auto ctxExecutor = std::make_unique<folly::CPUThreadPoolExecutor>(cpuThreads);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should reserve the ctxExecutor, otherwise it is released after the if block

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants