Skip to content

Support Sketch class in PayloadBuilder#310

Draft
vickenty wants to merge 3 commits intomasterfrom
vickenty/ske
Draft

Support Sketch class in PayloadBuilder#310
vickenty wants to merge 3 commits intomasterfrom
vickenty/ske

Conversation

@vickenty
Copy link
Copy Markdown
Contributor

@vickenty vickenty commented May 1, 2026

Use Sketch class instead of accepting individual sketch parameters.

Implement bin-splitting logic, to fit 64-bit counter values into 32-bit payload fields. Sketches that would result in too many bins are rejected early.

Adjust the tests to use the new class. Since the sketch builder only supports long values, add a few metrics to exercise float32 code path again, which was previously covered by one of the sketches.

vickenty added 3 commits May 1, 2026 17:15
These cases were not covered since Sketch only supports integers.
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.

1 participant