Skip to content

Conversation

@lukebakken
Copy link
Contributor

@lukebakken lukebakken commented Sep 6, 2016

Fixes #491 (CLIENTS-979)

@lukebakken lukebakken added this to the riak-python-client-2.6.0 milestone Sep 6, 2016
@lukebakken lukebakken self-assigned this Sep 6, 2016
@lukebakken lukebakken changed the title WIP: HyperLogLog support HyperLogLog support Sep 8, 2016
return [bytes_to_str(string[:]) for string in set_value]

def decode_hll_value(self, hll_value):
return int(hll_value)
Copy link
Contributor Author

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)
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope!

@alexmoore
Copy link
Contributor

👍 :shipit:

@lukebakken lukebakken merged commit 069b178 into master Sep 9, 2016
@lukebakken lukebakken deleted the features/lrb/hll-datatype-gh-491 branch September 9, 2016 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants