Skip to content

Sketch names follow the papers; CI green again; ClickHouse pinned to a release - #283

Merged
GordonYuanyc merged 3 commits into
mainfrom
rename-sketch-names-to-paper-names
Nov 30, 2026
Merged

GordonYuanyc merged 3 commits into
mainfrom
rename-sketch-names-to-paper-names

Conversation

@GordonYuanyc

@GordonYuanyc GordonYuanyc commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Step 9 of #267 (operator-level names), with the name table agreed in discussion, plus the fix for the red CI on main.

Names

Before After
cms (and cms-*) count-min-sketch (count-min-sketch-*)
count-min-space-saving, count-min-fold, count-min-hll count-min-sketch-space-saving, count-min-sketch-fold, count-min-sketch-hyperloglog
countsketch, hydra-cs count-sketch, hydra-count-sketch
hll (and hll-*), hydra-hll hyperloglog (hyperloglog-*), hydra-hyperloglog
hydra-cms hydra-count-min-sketch
dd ddsketch
kll-cdf, hydra-kll-cdf kll-cumulative-distribution, hydra-kll-cumulative-distribution
bloom, elastic, coco, nitro bloom-filter, elastic-sketch, cocosketch, nitrosketch
library lib, oxide asap_sketchlib, sketch_oxide

Unchanged, as the papers name them: kll, kmv, hip, univmon, univmon-q, hydra, space-saving, and the fastpath/vector2d/fixedmatrix/topk/percall parts. 16 of 29 algorithm names and 36 of 71 variant names change. Per D9, SketchId, --list-impls, impl and the masks keep their names. Rust module and function names (wrappers::cms, CmsParams, …) are unchanged.

What else changes with the names

  • count-min-sketch and count-sketch are now prefixes of other algorithms (space-saving, fold, hyperloglog, l2-norm), so CmsParams::owns and CountSketchParams::owns exclude those.
  • Old result files: a sketch_config written before the rename still parses; ParamSet maps an old variant name to the new one (RENAMED_VARIANTS in sketch-bench/src/params.rs). The study scripts map old names when they read result files (scripts/studies/sketch_names.py). SCHEMA_VERSION stays 5: no field changes.
  • ASAPQuery's family names in the study scripts (cms, countsketch, topk, kll, dd, hll) are ASAPQuery's vocabulary and stay; only the sketch-bench names next to them change.
  • Commands, scripts, configs/datagen comments, README and docs follow. docs/archive, docs/figures and the committed ASAPQuery tables in scripts/studies/testdata keep the names they were written with.
  • Not in this PR: ASAPPlanner crates/devtools/src/rqe_atomic_costs.rs reads cms/hll/dd-style names from the cost table, and the table now carries the new names. That reader needs its own PR in ProjectASAP/ASAPPlanner (Tracking: move main to the two-level layout of the interface design #267 step 9).

CI

ClickHouse pin

The tests pinned ClickHouse 26.8.39.13 from builds.clickhouse.com/26.8/amd64compat, a URL that follows the 26.8 branch: it now serves 26.8.52.6, and 26.8.39.13 was never a release, so the pinned binary could not be downloaded again. The pin is now the v26.8.39.19-lts GitHub release (clickhouse-common-static-26.8.39.19-amd64.tgz, git hash ed6dc0f3, binary sha256 47829ea3…f2dad0), 12 commits later; none of the source files capabilities/README.md cites changed, so its line anchors hold.

Checks run

  • cargo fmt --check; cargo clippy --workspace --all-targets --all-features -D warnings; cargo clippy -p system-bench --no-default-features.
  • cargo test --workspace: 690 passed. cargo test -p system-bench --features planeval: 123 passed.
  • Python: scripts/studies 120, scripts/use_cases 173, scripts/dataset_tools 5, all pass.
  • Every registry entry (94) run through the CLI on main's binary with the old names and on this branch's with the new names: same record names after mapping, same configs, same accuracy on all 79 deterministic entries. The other 12 entries also change between two runs of main's binary itself (no seed or multithreaded), and 3 entries have no scored statistic, so only throughput was run for them.
  • --list-impls matches the table exactly.
  • Scripts run end to end: example_config_override.py, run_profiles.sh (48 records), run_throughput_fast.sh, export_atomic_costs.sh (10 rows, 0 skipped).
  • Records written by main's binary, fed to plot_saturation_cost.py, come out under the new names.
  • Use case 5 with planeval, all arms, ran to completion.
  • Engines, on servers started with scripts/extbench-up*.sh and installed with scripts/install-*.sh: clickhouse_translate 1, clickhouse_run 10, clickhouse_conformance 13 (ClickHouse 26.8.39.19), victoriametrics_conformance 4 (v1.154.1), duckdb_command_line 3 (v1.3.1), pilotdb 2, postgresql_command_line 4 (TimescaleDB 2.32.1, toolkit 1.29.0): all pass.
  • scripts/one-shot-workload.sh end to end on a 1M-row sample of ClickBench hits (count, average, grouped and global distinct count, with an approximate variant per dialect): DuckDB, ClickHouse and PostgreSQL exact and approximate plus PilotDB, 22 of 22 results ok, report written.
  • Not run: Druid (same SQL HTTP path, untouched here), ASAPQuery-backend (built from another repository), ClickBench at full scale.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Fj92nP6BDs8xKTsK4ANbnP

GordonYuanyc and others added 3 commits November 30, 2026 10:13
… the runner

rustfmt reorders the usecase_study imports that #282 renamed. The child
peak-memory test allowed dd 64..68 MiB; the GitHub runner's dd peaks at
71 MiB (64 MiB buffer plus its own pages), so the bound is now 64..96 MiB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Fj92nP6BDs8xKTsK4ANbnP
…ch, ...

Registry algorithm and variant names, and the library names, as agreed:
cms -> count-min-sketch, countsketch -> count-sketch, hll -> hyperloglog,
dd -> ddsketch, bloom -> bloom-filter, elastic -> elastic-sketch,
coco -> cocosketch, nitro -> nitrosketch, cdf -> cumulative-distribution,
count-min-* -> count-min-sketch-*; lib -> asap_sketchlib,
oxide -> sketch_oxide. kll, kmv, hip, univmon, univmon-q, hydra,
space-saving and the fastpath/vector2d/topk parts keep their names.

count-min-sketch and count-sketch now prefix the space-saving, fold,
hyperloglog and l2-norm algorithms, so their params types exclude those.
A record written before the rename still parses: ParamSet maps an old
variant name to the new one (RENAMED_VARIANTS), and the study scripts map
old names in result files (scripts/studies/sketch_names.py).

ASAPQuery's family names (cms, countsketch, topk, kll, dd, hll) in the
study scripts are unchanged. Commands, scripts, configs and docs follow;
docs/archive, docs/figures and the committed ASAPQuery tables keep the
names they were written with.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Fj92nP6BDs8xKTsK4ANbnP
26.8.39.13 was a 26.8 branch build from builds.clickhouse.com/26.8/amd64compat,
a URL that follows the branch; it now serves 26.8.52.6, and 26.8.39.13 has no
release to download again. v26.8.39.19-lts is a GitHub release 12 commits
later; none of the cited source files changed, so the README anchors hold.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Fj92nP6BDs8xKTsK4ANbnP
@GordonYuanyc GordonYuanyc changed the title Sketch names follow the papers; CI green again Sketch names follow the papers; CI green again; ClickHouse pinned to a release Nov 30, 2026
@GordonYuanyc
GordonYuanyc merged commit c086ddd into main Nov 30, 2026
2 checks passed
@GordonYuanyc
GordonYuanyc deleted the rename-sketch-names-to-paper-names branch November 30, 2026 18:46
GordonYuanyc added a commit that referenced this pull request Nov 30, 2026
The document now describes main as it is after #268-#283: the system
registry, the one-shot and write-throughput interfaces, the full traits
and types, the run directory, and which output formats carry a version.
It covers interfaces only (measurement and scoring methods are out), opens
with the five interfaces at a glance, and its example is the
ASAPQuery-backend 8263b22b vs VictoriaMetrics run of use case 5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Fj92nP6BDs8xKTsK4ANbnP
GordonYuanyc added a commit that referenced this pull request Nov 30, 2026
* docs: interface design for the operator and system levels

Describes what the benchmark's interfaces should be: the sketch registry
entry and wrapper functions at operator level; the EngineUnderTest and
InstalledArm traits, workload and arm inputs, run directory outputs, and
measurement, accuracy and error rules at system level; which parts are
public; and the open questions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs: spell out sketch and library names in the interface design

count-min instead of cms, count-min-fast-path-vector-2d instead of
cms-fastpath-vector2d, sketch_oxide instead of oxide, asap_sketchlib
instead of lib.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs: interface design follows main, interfaces only, plain wording

The document now describes main as it is after #268-#283: the system
registry, the one-shot and write-throughput interfaces, the full traits
and types, the run directory, and which output formats carry a version.
It covers interfaces only (measurement and scoring methods are out), opens
with the five interfaces at a glance, and its example is the
ASAPQuery-backend 8263b22b vs VictoriaMetrics run of use case 5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Fj92nP6BDs8xKTsK4ANbnP

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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