Repository navigation
Fix classification perf test regression from #106278 - #106384
alexey-milovidov merged 3 commits into
Conversation
ClickHouse#106278 tried to remove the LIMIT-without-ORDER-BY non-determinism by sampling with WHERE cityHash64(WatchID) % N = 0. Post-merge master data showed it did not work: it made the measured queries scan the whole table on every run, so instead of reducing the noise it regressed it badly: classification #0: 6.5% -> 76% noisy classification #1: 10% -> 90% noisy (#2/ClickHouse#3/ClickHouse#4 were already clean.) Materialize the deterministic subset once into its own single-part table (single-threaded insert + OPTIMIZE FINAL) and measure over that, so the determinism lives in the setup (like ClickHouse#106249 for reading_from_file) and the measured queries read only the subset instead of rescanning the source.
|
Workflow [PR], commit [4a72d7c] Summary: ✅
AI ReviewSummaryThis PR changes Final VerdictStatus: ✅ Approve |
|
Performance comparison ran on both Classification results (base
Total across both arches: 0 slower, 0 faster, 1 unstable. The query that motivated this PR — |
|
Follow-up: post-merge data showed this materialized-subset approach still left classification #0/#1 as the noisiest tests in CI (~37-46%). The residual is the per-process placement asymmetry between the two perf servers, amplified by the memory-bound detect* functions (one server ~4.5x slower on identical binary/data — 4x CPU, 7x system time), which no test-level change fully removes. Since these NLP functions are rarely used, the test is being removed entirely in #106732. |
Follow-up to #106278.
#106278 aimed to remove the
LIMIT-without-ORDER BYnon-determinism in theclassificationperf test by sampling withWHERE cityHash64(WatchID) % N = 0. Post-merge master data shows it did not work — it moved the sampling into the measured query, which forces a full table rescan on every run, so the queries got slower and noisier instead of more stable.Master noise rate (
default.checks,pull_request_number = 0,master_head), before vs after #106278 merged (2026-06-02 20:09 UTC):classification #0classification #1classification #2classification #3classification #4#2/#3/#4were already clean, so the only net effect of #106278 was regressing#0/#1.This change keeps the determinism but moves it into the setup, like #106249 did for
reading_from_file: materialize the deterministic subset once infill_queryinto its own single-part table (single-threaded insert +OPTIMIZE FINAL, so both servers get an identical part), and have the measured queries read only that subset instead of rescanning the source.detectTonality(#2) still reads the full table and is unchanged.Related: #100759
Changelog category (leave one):
Version info
26.6.1.446