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

[Star tree] Rename count to value_count to be inline with aggregations #15147

Merged

Conversation

bharath-techie
Copy link
Contributor

@bharath-techie bharath-techie commented Aug 7, 2024

Description

Rename "count" to "value_count" to be inline with naming conventions of search aggregations

Related Issues

Solves part of #15148

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.

Copy link
Contributor

github-actions bot commented Aug 7, 2024

❌ Gradle check result for 1a85868: 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

github-actions bot commented Aug 7, 2024

❌ Gradle check result for a842fa8: 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: Bharathwaj G <[email protected]>
Copy link
Contributor

github-actions bot commented Aug 7, 2024

❕ Gradle check result for 8ac65ac: UNSTABLE

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

Copy link

codecov bot commented Aug 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.88%. Comparing base (9661e8d) to head (e878a36).
Report is 27 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #15147      +/-   ##
============================================
+ Coverage     71.81%   71.88%   +0.06%     
- Complexity    63053    63119      +66     
============================================
  Files          5212     5212              
  Lines        295649   295649              
  Branches      42692    42692              
============================================
+ Hits         212331   212514     +183     
+ Misses        65862    65676     -186     
- Partials      17456    17459       +3     

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

@sarthakaggarwal97
Copy link
Contributor

LGTM! thanks @bharath-techie

Adding here for reference: https://opensearch.org/docs/latest/aggregations/metric/value-count/

Copy link
Contributor

@ajaymovva ajaymovva left a comment

Choose a reason for hiding this comment

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

LGTM

@dblock
Copy link
Member

dblock commented Aug 14, 2024

Just confirming that this is not a breaking change for something that we GA-ed already?

@sarthakaggarwal97
Copy link
Contributor

Just confirming that this is not a breaking change for something that we GA-ed already?

@dblock Star Tree is yet to be GA-ed as a feature. It still under development, and the plan is to backport it to 2.x for OS 2.17. We introduced a count as a aggregation here, but its still a part of main branch only.
This PR brings star tree count aggregation inline with present aggregations.

@dblock
Copy link
Member

dblock commented Aug 15, 2024

@bharath-techie You might want to start drafting API changes in https://github.com/opensearch-project/opensearch-api-specification earlier than later for this feature. That repo supports testing with feature flags enabled, too.

@bharath-techie
Copy link
Contributor Author

@bharath-techie You might want to start drafting API changes in https://github.com/opensearch-project/opensearch-api-specification earlier than later for this feature. That repo supports testing with feature flags enabled, too.

Sure thanks @dblock let me track this - will create an associated issue as well.

Copy link
Contributor

❕ Gradle check result for e878a36: UNSTABLE

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

@sachinpkale sachinpkale merged commit e8ee6db into opensearch-project:main Aug 19, 2024
34 of 35 checks passed
wdongyu pushed a commit to wdongyu/OpenSearch that referenced this pull request Aug 22, 2024
@bharath-techie bharath-techie added the backport 2.x Backport to 2.x branch label Aug 26, 2024
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 26, 2024
Signed-off-by: Bharathwaj G <[email protected]>
(cherry picked from commit e8ee6db)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
linuxpi pushed a commit that referenced this pull request Aug 26, 2024
(cherry picked from commit e8ee6db)

Signed-off-by: Bharathwaj G <[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>
akolarkunnu pushed a commit to akolarkunnu/OpenSearch that referenced this pull request Sep 10, 2024
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 skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants