Skip to content

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Jan 15, 2026

Which issue does this PR close?

Rationale for this change

Backport a regression found by @bert-beyondloops into the 52 release line

What changes are included in this PR?

Backport fix for #19781, #19785 to branch-52

Are these changes tested?

Yes

Are there any user-facing changes?

bug fix

…edBatchCoalescer (apache#19785)

## Which issue does this PR close?

PR will close issue apache#19781.


## Rationale for this change

Fixes the internal error

## What changes are included in this PR?

The code change is inspired by the `CoalesceBatchesStream`
implementation.

## Are these changes tested?

Additional sqllogictest written in limit.slt which triggered the issue
before the fix.

## Are there any user-facing changes?

No

---------

Co-authored-by: Bert Vermeiren <[email protected]>
@github-actions github-actions bot added documentation Improvements or additions to documentation development-process Related to development process of DataFusion physical-expr Changes to the physical-expr crates core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) catalog Related to the catalog crate execution Related to the execution crate datasource Changes to the datasource crate physical-plan Changes to the physical-plan crate labels Jan 15, 2026
@alamb alamb changed the base branch from main to branch-52 January 15, 2026 18:52
@alamb alamb changed the title Alamb/backport filter fix [branch-52] Fix Internal error: Assertion failed: !self.finished: LimitedBatchCoalescer (#19785) Jan 15, 2026
@alamb alamb merged commit 18fdd8b into apache:branch-52 Jan 16, 2026
2 of 3 checks passed
@alamb
Copy link
Contributor Author

alamb commented Jan 16, 2026

Thank you @xudong963

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

Labels

catalog Related to the catalog crate core Core DataFusion crate datasource Changes to the datasource crate development-process Related to development process of DataFusion documentation Improvements or additions to documentation execution Related to the execution crate physical-expr Changes to the physical-expr crates physical-plan Changes to the physical-plan crate sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants