Skip to content

refactor(capability)!: full names and upper-case acronyms for SketchAlgorithm variants - #260

Merged
zzylol merged 1 commit into
mainfrom
fix/capability-full-names
Oct 29, 2026
Merged

zzylol merged 1 commit into
mainfrom
fix/capability-full-names

Conversation

@zzylol

@zzylol zzylol commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Why

Review on #254 asked for full names and upper-case acronyms in the SketchAlgorithm variants, for example CountMinSketch instead of Cms and HydraKLL instead of HydraKll. #254 merged before those comments were addressed.

What

This PR renames the SketchAlgorithm variants. Only the variants change: the rows, the statistic names and the sketch struct names stay as they are.

Before After
Cms, CmsWithHeap, CmsWithSpaceSaving, CmsFold CountMinSketch, CountMinSketchWithHeap, CountMinSketchWithSpaceSaving, CountMinSketchFold
HydraCms HydraCountMinSketch
Kll, KllDynamic, HydraKll KLL, KLLDynamic, HydraKLL
Hll, HllHip, HydraHll HLL, HLLHip, HydraHLL
Kmv KMV
Elastic, Coco ElasticSketch, CocoSketch
CmsHll, MicroCm (experimental) CountMinSketchHLL, MicroCountMinSketch

How

The renames apply to the enum, ALL, capability() and tests/capability.rs. The CHANGELOG entry for the unreleased table now states the naming rule.

Before

SketchAlgorithm::Cms, SketchAlgorithm::HydraKll; serde writes "Cms".

After

SketchAlgorithm::CountMinSketch, SketchAlgorithm::HydraKLL; serde writes "CountMinSketch". The ASAPPlanner adopts the new names in the same change that pins this commit.

Verification

  • cargo test --test capability --all-features: 3 passed.
  • cargo test --lib capability: passed.
  • cargo clippy --all-targets --all-features -- -D warnings: clean.
  • cargo fmt --check: clean.

🤖 Generated with Claude Code

…gorithm variants

Cms* -> CountMinSketch*, Kll/Hll/Kmv -> KLL/HLL/KMV (incl. Hydra and
HLLHip/KLLDynamic), Elastic/Coco -> ElasticSketch/CocoSketch,
MicroCm -> MicroCountMinSketch, CmsHll -> CountMinSketchHLL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@zzylol zzylol added the enhancement New feature or request label Oct 29, 2026
@zzylol
zzylol merged commit 0a61465 into main Oct 29, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant