-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[Bug Fix] [Star Tree] Fix sub-aggregator casting for search with profile=true #19652
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
Conversation
|
❌ Gradle check result for bc8d931: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #19652 +/- ##
============================================
+ Coverage 73.09% 73.11% +0.02%
+ Complexity 70723 70694 -29
============================================
Files 5725 5725
Lines 323796 323795 -1
Branches 46886 46882 -4
============================================
+ Hits 236673 236742 +69
+ Misses 68009 67973 -36
+ Partials 19114 19080 -34 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
server/src/main/java/org/opensearch/search/profile/aggregation/ProfilingAggregator.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/search/aggregations/bucket/terms/MultiTermsAggregator.java
Show resolved
Hide resolved
|
LGTM! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved!
Signed-off-by: Sandesh Kumar <[email protected]>
Signed-off-by: Sandesh Kumar <[email protected]>
…ile=true (#19652) * fix sub-aggregator casting when used with profile=true Signed-off-by: Sandesh Kumar <[email protected]> --------- Signed-off-by: Sandesh Kumar <[email protected]> (cherry picked from commit b9781c1) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…earch with profile=true (#19669) * [Bug Fix] [Star Tree] Fix sub-aggregator casting for search with profile=true (#19652) * fix sub-aggregator casting when used with profile=true Signed-off-by: Sandesh Kumar <[email protected]> --------- Signed-off-by: Sandesh Kumar <[email protected]> (cherry picked from commit b9781c1) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * fix changelog Removed several fixed issues from CHANGELOG. Signed-off-by: Sandesh Kumar <[email protected]> --------- Signed-off-by: Sandesh Kumar <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Sandesh Kumar <[email protected]>
…ile=true (opensearch-project#19652) * fix sub-aggregator casting when used with profile=true Signed-off-by: Sandesh Kumar <[email protected]> --------- Signed-off-by: Sandesh Kumar <[email protected]>
…ile=true (opensearch-project#19652) * fix sub-aggregator casting when used with profile=true Signed-off-by: Sandesh Kumar <[email protected]> --------- Signed-off-by: Sandesh Kumar <[email protected]>
Description
Fix of type-casting issue when aggregator is wrapped in
ProfilingAggregator. While setting sub-aggregators, we need to ensure that the unwrapped aggregator is passed back.Also, refactored few pieces of the code to remove redundant methods.
Related Issues
Resolves #19649
Check List
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.