Skip to content
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

[bug fix] fix precompute ordering in max & min aggregator #17505

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sandeshkr419
Copy link
Contributor

@sandeshkr419 sandeshkr419 commented Mar 4, 2025

Description

Fixes ordering change of pre-computation steps in Max/Min aggregator which was accidentally changed in #16733

Related Issues

For match-all cases, max/min aggregation without any parent/child aggregations can be precomputed faster than star-tree, so that's why it was prioritized over star-tree pre-computation. This ordering was modified in the above refactoring change, so making this change back.

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Sandesh Kumar <[email protected]>
Copy link
Contributor

github-actions bot commented Mar 4, 2025

✅ Gradle check result for ff08b28: SUCCESS

Copy link

codecov bot commented Mar 4, 2025

Codecov Report

Attention: Patch coverage is 26.66667% with 11 lines in your changes missing coverage. Please review.

Project coverage is 72.50%. Comparing base (f6d6aa6) to head (ff08b28).

Files with missing lines Patch % Lines
...rch/search/aggregations/metrics/MaxAggregator.java 25.00% 5 Missing and 1 partial ⚠️
...rch/search/aggregations/metrics/MinAggregator.java 28.57% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #17505      +/-   ##
============================================
+ Coverage     72.47%   72.50%   +0.02%     
- Complexity    65705    65762      +57     
============================================
  Files          5307     5307              
  Lines        304774   304774              
  Branches      44193    44193              
============================================
+ Hits         220898   220965      +67     
- Misses        65738    65750      +12     
+ Partials      18138    18059      -79     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sandeshkr419 sandeshkr419 changed the title [draft] fix precompute ordering [bug fix] fix precompute ordering in max & min aggregator Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch bug Something isn't working skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant