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 min doc_count empty merge bug #2057

Merged
merged 1 commit into from
May 29, 2023
Merged

Fix min doc_count empty merge bug #2057

merged 1 commit into from
May 29, 2023

Conversation

PSeitz
Copy link
Contributor

@PSeitz PSeitz commented May 25, 2023

This fixes an issue when min_doc==0 loads a term from the dictionary from
one segment and merges the same term with a subaggregation from another
segment.
Previously the empty structure was not correctly initialized to contain
the subaggregation so the merge was incorrect.

Closes quickwit-oss/quickwit#3408

@codecov-commenter
Copy link

codecov-commenter commented May 25, 2023

Codecov Report

Merging #2057 (a764d49) into main (e56addc) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff           @@
##             main    #2057   +/-   ##
=======================================
  Coverage   94.37%   94.37%           
=======================================
  Files         319      319           
  Lines       59873    59951   +78     
=======================================
+ Hits        56504    56580   +76     
- Misses       3369     3371    +2     
Impacted Files Coverage Δ
src/aggregation/bucket/term_agg.rs 98.60% <100.00%> (+0.10%) ⬆️

... and 2 files with indirect coverage changes

@PSeitz PSeitz requested review from fmassot and fulmicoton May 26, 2023 02:45
Copy link
Collaborator

@fulmicoton fulmicoton left a comment

Choose a reason for hiding this comment

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

LGTM can you fix he clippy comment before merging?

This fixes an issue when min_doc==0 loads terms from the dictionary from
one segment and merges the same term with a subaggregation from another
segment.
Previously the empty structure was not correctly initialized to contain
the subaggregation so the merge was incorrect.
@PSeitz PSeitz merged commit 3af4569 into main May 29, 2023
@PSeitz PSeitz deleted the min_doc_bug branch May 29, 2023 06:20
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.

No date histogram buckets returned for matching documents
3 participants