Repository navigation
Conversation
…file
The bfloat16, float32 and float64 variants differed only in the element type
and the full precision. They are now one test, `qbit_l2_distance_memory`,
that measures the same six queries on the same tables and data.
The full precision of each type is its bit width, so one substitution `bits`
(16, 32, 64) names the table and is the full precision. Perf substitutions are
a cross product, and a precision above the element width is rejected by
`L2DistanceTransposed`, so the queries are two templates: one at precision
`{bits}` and one at precision 8. The tables are renamed `tab_<Type>` ->
`tab_<bits>` and created by three explicit statements, since there is no
placeholder that maps the width back to the type.
The Iceberg skip list now names the new file instead of the three old ones,
and the comment in `qbit_distance_transposed_micro.xml` refers to it.
Related: ClickHouse#129258
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 0 findings) plus my own cold review (0 blockers, 0 majors).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261104-191300 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-5:20261104-190200 |
|
cc @egor-click, could you review this and add the |
|
Workflow [PR], commit [c1098f9] Summary: ✅
AI ReviewSummaryPR #129364 consolidates three Missing context / blind spots
Final VerdictStatus: ✅ Approve. No required changes. |
|
is it just to save 1s per arch? i don't think it is worth it to be honest, i am working on coverage based runs experiment, and i would suggest to wait until it is finished to look for time savings in perf comparison framework until i have results this pr if i understand correctly does not change much |
|
Yes, about 1 s per arch per master commit: each type keeps its own table and fill, so only the per-test overhead goes. It is mainly the file merge from #129258 (three near-identical files become one), not a time saving. Agreed, I will stop the series until your coverage experiment has results. I will leave this PR open in case the merge is still wanted as a cleanup; feel free to close it otherwise. |
|
@groeneai Please keep going. Even if it's saving just 1 second, unifying tests and removing duplicates is useful |
|
we have only test and query number for historical results, if we start deleting tests, all query numbers will change and all history we have will be thrown into trash i don’t like that, @groeneai , this is a solution made in a hurry that will break more than it will improve i think that we need a way to mark queries disabled,stale so they don't run and only append new queries or create new tests and never change or delete |
|
Understood. This PR renumbers no query in a surviving test: its 6 queries move to the new test name |
|
@egor-click With the |
|
ill close it for now, skip is the better approach atm, we can revisit when i can build better unique identifiers |
Related: #129258
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Item 2 of #129258:
qbit_l2_distance_bfloat16_memory,qbit_l2_distance_float32_memoryandqbit_l2_distance_float64_memorydiffered only in the element type and its full precision. They are now one file,qbit_l2_distance_memory, with the same six queries on the same tables and data.The full precision of each type is its bit width, so one substitution
bits(16, 32, 64) names the table and is the full precision. Substitutions are a cross product andL2DistanceTransposedrejects a precision above the element width, so there are two query templates: precision{bits}(#0-#2) and precision 8 (#3-#5). The tables are renamed fromtab_<Type>totab_<bits>.iceberg_skip_list.txtnow lists the new file instead of the three old ones (Iceberg cannot store aQBitcolumn). Changing that file makes this PR run the Iceberg performance configuration, which is not a required check.Validation:
perf.py --print-querieson the old and new files gives six expanded queries that are byte-identical after the table rename. A localperf.pyrun of all four files against the master CI binary executes the same nine setup and three drop statements, and gives the same result digest for all six queries.The saving is small, about 1 s per arch per master commit (the per-test overhead; the three fills stay). The perf history is keyed by test name, so the merged test starts without learned thresholds and is judged at the default floors (0.15 / 0.25) until it has history. Only the two
Float64queries had learned thresholds above those floors.Workflow [PR]
Sync PR [sync-upstream/pr/129364]