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

LUCENE-10047: Fix value de-duping check in LongValueFacetCounts and RangeFacetCounts #237

Merged
merged 2 commits into from Aug 7, 2021

Conversation

gsmiller
Copy link
Contributor

@gsmiller gsmiller commented Aug 7, 2021

Description

These two facet counting implementations are incorrectly assuming that -1 is an invalid value (for the purpose of value de-duping), which isn't the case.

Solution

Fix the above assumption.

Tests

Existing randomized testing caught the bug. Tests now pass.

Checklist

Please review the following and check all that apply:

  • I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
  • I have created a Jira issue and added the issue ID to my pull request title.
  • I have given Lucene maintainers access to contribute to my PR branch. (optional but recommended)
  • I have developed this patch against the main branch.
  • I have run ./gradlew check.
  • I have added tests for my changes.

@gsmiller gsmiller merged commit a11457b into apache:main Aug 7, 2021
@gsmiller
Copy link
Contributor Author

gsmiller commented Aug 7, 2021

Pushing without a review to unblock broken nightly build test runs. Happy to tweak this further if anyone has feedback though.

@gsmiller gsmiller deleted the LUCENE-10047 branch August 7, 2021 17:21
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.

None yet

1 participant