Skip to content

[9.0] Avoid dropping aggregate groupings in local plans (#129370) #130053

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 26, 2025

Conversation

dnhatn
Copy link
Member

@dnhatn dnhatn commented Jun 25, 2025

Backport

This will backport the following commits from main to 9.0:

The local plan optimizer should not change the layout, as it has already
been agreed upon. However, CombineProjections can violate this when some
grouping elements refer to the same attribute. This occurs when
ReplaceFieldWithConstantOrNull replaces missing fields with the same
reference for a given data type.

Closes elastic#128054
Closes elastic#129811

(cherry picked from commit 2bc6284)
@dnhatn dnhatn added :Analytics/ES|QL AKA ESQL auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) labels Jun 25, 2025
@elasticsearchmachine elasticsearchmachine merged commit 31d9038 into elastic:9.0 Jun 26, 2025
17 checks passed
@dnhatn dnhatn deleted the backport/9.0/pr-129370 branch June 26, 2025 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/ES|QL AKA ESQL auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v9.0.4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants