Skip to content

[8.19] Avoid dropping aggregate groupings in local plans (#129370)#130055

Merged
dnhatn merged 1 commit intoelastic:8.19from
dnhatn:backport/8.19/pr-129370
Jun 26, 2025
Merged

[8.19] Avoid dropping aggregate groupings in local plans (#129370)#130055
dnhatn merged 1 commit intoelastic:8.19from
dnhatn:backport/8.19/pr-129370

Conversation

@dnhatn
Copy link
Member

@dnhatn dnhatn commented Jun 25, 2025

Backport

This will backport the following commits from main to 8.19:

Questions ?

Please refer to the Backport tool documentation

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 the :Analytics/ES|QL AKA ESQL label Jun 26, 2025
@dnhatn dnhatn merged commit b2e79a8 into elastic:8.19 Jun 26, 2025
22 checks passed
@dnhatn dnhatn deleted the backport/8.19/pr-129370 branch June 26, 2025 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants