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

Fix missing bucket in terms aggregation with missing value #17418

Merged

Conversation

kkewwei
Copy link
Contributor

@kkewwei kkewwei commented Feb 21, 2025

Signed-off-by: kkewwei kewei.11@bytedance.com
Signed-off-by: kkewwei kkewwei@163.com

Fix missing bucket in terms aggregation with missing value

Description

[Describe what this change achieves]

Related Issues

Resolves #17391

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.

@kkewwei kkewwei requested a review from linuxpi as a code owner February 21, 2025 15:12
Copy link
Member

@andrross andrross left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kkewwei!

Are there other places where the logical change in GlobalOrdinalsStringTermsAggregator might cause problems?

Copy link
Contributor

❌ Gradle check result for 317a1d2: 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?

Signed-off-by: kkewwei <kewei.11@bytedance.com>
Signed-off-by: kkewwei <kkewwei@163.com>
@kkewwei kkewwei force-pushed the fix_termsAggregationWithMiss branch from 317a1d2 to a845d85 Compare February 21, 2025 16:41
@kkewwei
Copy link
Contributor Author

kkewwei commented Feb 21, 2025

Thanks @kkewwei!

Are there other places where the logical change in GlobalOrdinalsStringTermsAggregator might cause problems?

@andrross Thank you for your reply.

We just change three same code in 7c46f8f, I think it will not cause other problems.

Copy link
Contributor

❌ Gradle check result for a845d85: 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?

Copy link
Contributor

✅ Gradle check result for a845d85: SUCCESS

Copy link

codecov bot commented Feb 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.40%. Comparing base (abe2333) to head (a845d85).
Report is 3 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #17418      +/-   ##
============================================
- Coverage     72.41%   72.40%   -0.02%     
+ Complexity    65667    65647      -20     
============================================
  Files          5303     5303              
  Lines        304781   304793      +12     
  Branches      44201    44202       +1     
============================================
- Hits         220709   220672      -37     
- Misses        65959    66043      +84     
+ Partials      18113    18078      -35     

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

Copy link
Contributor

@noCharger noCharger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add another case where field is in text but has two words?

@andrross andrross merged commit 8447737 into opensearch-project:main Feb 21, 2025
31 checks passed
@andrross
Copy link
Member

Can we add another case where field is in text but has two words?

@noCharger The test that was added here failed for the text case without the fix so I think it probably gives sufficient coverage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Search:Aggregations v3.0.0 Issues and PRs related to version 3.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Missing bucket in terms aggregation with missing value
3 participants