apache / datasketches-cpp

Core C++ Sketch Library
https://datasketches.apache.org
Apache License 2.0
225 stars 71 forks source link

Add python serde support for varopt sketches #297

Closed jmalkin closed 2 years ago

jmalkin commented 2 years ago

The immediate result is for varopt, but having this working should be an important part of adding tuple support.

I'm least confident in the error recovery during deserialization. I think it's most likely that Python will throw an error which propagates through the c++ code. In this case I'm intercepting it to try to decrement reference counts for items we've already allocated but it's hard to tell if that's actually preventing a leak or not. Happy for suggestions on how to clean up that code.

Also, fixed a size bug in varopt.

coveralls commented 2 years ago

Pull Request Test Coverage Report for Build 2866306349


Totals Coverage Status
Change from base Build 2713877899: 0.006%
Covered Lines: 2196
Relevant Lines: 2378

💛 - Coveralls