-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Fix test error in InternalCardinalityTests#testEqualsAndHashcode #62542
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
Conversation
|
Pinging @elastic/es-analytics-geo (:Analytics/Aggregations) |
|
@elasticmachine run elasticsearch-ci/packaging-sample-windows |
2 similar comments
|
@elasticmachine run elasticsearch-ci/packaging-sample-windows |
|
@elasticmachine run elasticsearch-ci/packaging-sample-windows |
polyfractal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a comment about a maybe-future tweak, but LGTM as it stands right now :)
| int extraValues = between(10, 100); | ||
| for (int i = 0; i < extraValues; i++) { | ||
| for (int i = 0; i < 10; i++) { | ||
| newState.collect(0, BitMixer.mix64(randomIntBetween(500, 10000))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't looked closely at the test, but is there a way to ensure we add new values that weren't previously added? Maybe by picking from a different range of random values or something? Or keeping a set?
Maybe it's a non-issue and random enough to not matter... might be a problem for a different day :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does use a different range of values, Still for precision 4 in the previous approach you could get the same sketch at the end :( I think this way is very very unlikely.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah gotcha. Sounds good!
) (#62554) Make sure the the new HLL++ is different to the original one
Make sure the the new HLL++ is different to the original one by not merging the original and just add a few values to the new one.
closes #62540