Skip to content

feat: add kll sketch implementation and tests - #76

Open
PsiACE wants to merge 2 commits into
apache:mainfrom
PsiACE:kll-sketches
Open

feat: add kll sketch implementation and tests#76
PsiACE wants to merge 2 commits into
apache:mainfrom
PsiACE:kll-sketches

Conversation

@PsiACE

@PsiACE PsiACE commented Jan 20, 2026

Copy link
Copy Markdown
Member

Rationale for this change

Add KLL quantiles with current DataSketches semantics and interoperable compact serialization.

What changes are included in this PR?

  • Add a generic KLL sketch with custom comparators, rank/quantile/CDF/PMF queries, merge, and reset.
  • Support compact serialization for f32, f64, i64, and String, compatible with current Java and C++ implementations.
  • Add reference-derived behavior tests and Java/C++ cross-language acceptance tests.

Are there any user-facing changes?

Yes. This adds the optional kll feature and public KllSketch API. Existing users are unaffected unless the feature is enabled.

AI Usage Statement

Developed with OpenAI Codex. The implementation and tests were checked against the Java and C++ references and validated with the repository test and lint workflows.

@PsiACE
PsiACE marked this pull request as ready for review July 29, 2026 04:16
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