Skip to content

[8.x] Fix TopN row size estimate (#119476)#119544

Merged
elasticsearchmachine merged 1 commit intoelastic:8.xfrom
dnhatn:backport/8.x/pr-119476
Jan 3, 2025
Merged

[8.x] Fix TopN row size estimate (#119476)#119544
elasticsearchmachine merged 1 commit intoelastic:8.xfrom
dnhatn:backport/8.x/pr-119476

Conversation

@dnhatn
Copy link
Member

@dnhatn dnhatn commented Jan 3, 2025

Backports the following commits to 8.x:

Currently, we only account for attributes after the TopN operation when 
estimating its row size. This results in invalid estimates for the final
TopN on the coordinator and the node-level reduction TopN. This change
corrects the estimates and removes the workaround, paving the way for
enabling node-level reduction in ES|QL.

Closes elastic#106956
@dnhatn dnhatn added :Analytics/ES|QL AKA ESQL >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) labels Jan 3, 2025
@elasticsearchmachine elasticsearchmachine merged commit 320fc75 into elastic:8.x Jan 3, 2025
@dnhatn dnhatn deleted the backport/8.x/pr-119476 branch January 3, 2025 22:53
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 >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.18.0

2 participants