Skip to content

[branch-52] Fix incorrect SortExec removal before AggregateExec (#20247)#20507

Merged
alamb merged 3 commits intoapache:branch-52from
alamb:alamb/backport_20247
Feb 25, 2026
Merged

[branch-52] Fix incorrect SortExec removal before AggregateExec (#20247)#20507
alamb merged 3 commits intoapache:branch-52from
alamb:alamb/backport_20247

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Feb 23, 2026

Which issue does this PR close?

Rationale for this change

See issues

What changes are included in this PR?

Are these changes tested?

By CI

Are there any user-facing changes?

…pache#20247)

- Fixes apache#20244

This is an alternatative to
- apache#20245

Wrong answers bug was exposed by
apache#19287 in 52. See
apache#20244 and backstory here
- apache#19287 (comment)

Fix the bug by properly implemnting

Yes, a new test is added

A bug is fixed

---------

Co-authored-by: Mustafa Akur <[email protected]>
@alamb alamb marked this pull request as ready for review February 23, 2026 19:57
@github-actions github-actions bot added optimizer Optimizer rules sqllogictest SQL Logic Tests (.slt) labels Feb 23, 2026
Copy link
Contributor

@comphead comphead left a comment

Choose a reason for hiding this comment

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

Thanks @alamb for the backport

@alamb
Copy link
Contributor Author

alamb commented Feb 25, 2026

I merged up to resolve a conflit

@alamb alamb merged commit 7388120 into apache:branch-52 Feb 25, 2026
32 checks passed
@alamb
Copy link
Contributor Author

alamb commented Feb 25, 2026

Thanks again for the review @comphead

@alamb alamb deleted the alamb/backport_20247 branch February 25, 2026 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

optimizer Optimizer rules sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants