-
Notifications
You must be signed in to change notification settings - Fork 183
HyperLogLog support #492
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
HyperLogLog support #492
Conversation
| return [bytes_to_str(string[:]) for string in set_value] | ||
|
|
||
| def decode_hll_value(self, hll_value): | ||
| return int(hll_value) |
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.
Note: in Python 2, int() thankfully does the right thing if hll_value requires a long internally.
| def check_op_output(self, op): | ||
| self.assertIn('adds', op) | ||
| self.assertItemsEqual(op['adds'], ['bar', 'foo']) | ||
| self.assertIn('removes', op) |
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.
Did you mean to remove these lines from the Set Unit tests?
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.
Nope!
|
👍 |
Fixes #491 (CLIENTS-979)