Skip to content

feat: integrate batch coalescer with async fn exec - #19342

Merged
alamb merged 7 commits into
apache:mainfrom
feniljain:feat-batch-coalesce-async-fn-exec
Jan 1, 2026
Merged

feat: integrate batch coalescer with async fn exec#19342
alamb merged 7 commits into
apache:mainfrom
feniljain:feat-batch-coalesce-async-fn-exec

Conversation

@feniljain

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

What changes are included in this PR?

Currently haven't included changes to remove it from optimizer, will do it in a subsequent PR as I see everyone else has done the same?

Mostly took code from other PRs and just stitched it together to work with AsyncFnExec

Are these changes tested?

In Progress

Are there any user-facing changes?

No

@github-actionsgithub-actionsBot added optimizer Optimizer rules physical-plan Changes to the physical-plan crate labels Dec 15, 2025
@feniljain
feniljainforce-pushed the feat-batch-coalesce-async-fn-exec branch from 76f6837 to f0e4be2CompareDecember 19, 2025 08:32
@github-actionsgithub-actionsBot removed the optimizer Optimizer rules label Dec 19, 2025
@feniljain
feniljain marked this pull request as ready for review December 19, 2025 10:11
@feniljain

Copy link
Copy Markdown
ContributorAuthor

Hey @jizezhang 👋🏻

I think we can review it now :)

Comment threaddatafusion/physical-plan/src/async_func.rs
@feniljainfeniljain changed the title wip: integrate batch coalescer with async fn execfeat: integrate batch coalescer with async fn execDec 19, 2025

@alambalamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @feniljain and @jizezhang -- I think this PR needs tests but otherwise could be merged in. I also have some ideas of how to simplify it a bit

Comment threaddatafusion/physical-plan/src/async_func.rs

@alambalamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you @feniljain - this looks good to me

I am also interested in @jizezhang's comments too.

@alamb

Copy link
Copy Markdown
Contributor

BTW I think we'll need one more PR to remove the rule from CoalesceBatches (and maybe we can even remove the entire rule now...)

@jizezhangjizezhang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me too, thank you.

@feniljain

feniljain commented Dec 30, 2025

Copy link
Copy Markdown
ContributorAuthor

Thank you for patiently reviewing and helping me! 🙇🏻

BTW I think we'll need one more PR to remove the rule from CoalesceBatches (and maybe we can even remove the entire rule now...)

I will raise a PR for both of them after this gets merged. And also another PR to implement metrics in AsyncFuncExec :)

@alamb
alamb added this pull request to the merge queueJan 1, 2026
@alamb

alamb commented Jan 1, 2026

Copy link
Copy Markdown
Contributor

Thanks @feniljain and @jizezhang

Merged via the queue into apache:main with commit fd26321Jan 1, 2026
32 checks passed
@feniljain
feniljain deleted the feat-batch-coalesce-async-fn-exec branch January 1, 2026 13:50
@alamb

alamb commented Jan 1, 2026

Copy link
Copy Markdown
Contributor

Thank you for patiently reviewing and helping me! 🙇🏻

BTW I think we'll need one more PR to remove the rule from CoalesceBatches (and maybe we can even remove the entire rule now...)

I will raise a PR for both of them after this gets merged. And also another PR to implement metrics in AsyncFuncExec :)

Thank you @feniljain . I filed a ticket to track this:

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

Labels

physical-planChanges to the physical-plan crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integrate BatchCoalescer into AsyncFuncExec and remove from CoalesceBatches optimization rule

3 participants

@feniljain@alamb@jizezhang