Skip to content

Remove invalid cardinality aggregation hints.#970

Merged
karenyrx merged 2 commits intoopensearch-project:mainfrom
finnegancarroll:card-agg-hints
Sep 30, 2025
Merged

Remove invalid cardinality aggregation hints.#970
karenyrx merged 2 commits intoopensearch-project:mainfrom
finnegancarroll:card-agg-hints

Conversation

@finnegancarroll
Copy link
Copy Markdown
Contributor

Description

save_memory_heuristic, save_time_heuristic, segment_ordinals are unused execution hints for cardinality aggregation. Only direct and global ordinals are valid:
https://github.com/opensearch-project/OpenSearch/blob/main/server/src/main/java/org/opensearch/search/aggregations/metrics/CardinalityAggregatorFactory.java#L62-L80

It seems the others may have been pulled from ES documentation:
https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-cardinality-aggregation#_pre_computed_hashes

Issues Resolved

N/A

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: Finn Carroll <carrofin@amazon.com>
Signed-off-by: Finn Carroll <carrofin@amazon.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Sep 29, 2025

Changes Analysis

Commit SHA: 8e325b2
Comparing To SHA: 3be80d7

API Changes

Summary

└─┬Components
  └─┬_common.aggregations___CardinalityExecutionMode
    ├──[➖] enum (41533:11)❌ 
    ├──[➖] enum (41534:11)❌ 
    └──[➖] enum (41535:11)❌ 

Document Element Total Changes Breaking Changes
components 3 3
  • BREAKING Changes: 3 out of 3
  • Removals: 3
  • Breaking Removals: 3

Report

The full API changes report is available at: https://github.com/opensearch-project/opensearch-api-specification/actions/runs/18111530457/artifacts/4137240460

API Coverage

Before After Δ
Covered (%) 666 (65.23 %) 666 (65.23 %) 0 (0 %)
Uncovered (%) 355 (34.77 %) 355 (34.77 %) 0 (0 %)
Unknown 128 128 0

@github-actions
Copy link
Copy Markdown
Contributor

Spec Test Coverage Analysis

Total Tested
681 679 (99.71 %)

@karenyrx karenyrx merged commit 980ffb7 into opensearch-project:main Sep 30, 2025
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants