Skip to content

[8.18] Rare terms aggregation false **positive** fix (#126884) #127357

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

Merged
merged 1 commit into from
Apr 24, 2025

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Apr 24, 2025

Backports the following commits to 8.18:

I found that `rare_terms` aggregation can return **false positive**
results (some of the returned results are not real).  I traced it
down and find out it's a bug in `CuckooFilter`'s merge methord.

```
        if (isSetMode == false && other.isSetMode) {
            other.hashes.forEach(this::add);
        }
```

should be 

```
        if (isSetMode == false && other.isSetMode) {            
            other.hashes.forEach(this::addHash);
        }
```
@nik9000 nik9000 added :Analytics/Aggregations Aggregations >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport external-contributor Pull request authored by a developer outside the Elasticsearch team Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) labels Apr 24, 2025
@elasticsearchmachine elasticsearchmachine merged commit 4975f1d into elastic:8.18 Apr 24, 2025
15 checks passed
@nik9000 nik9000 deleted the backport/8.18/pr-126884 branch April 24, 2025 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/Aggregations Aggregations auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug external-contributor Pull request authored by a developer outside the Elasticsearch team Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.18.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants