Repository navigation
Remove performance test queries that are also measured in another file - #129303
Algunenano merged 1 commit into
Conversation
Each removed query has the same text, settings and tables as a query in another file, so it measured the same path a second time. - date_time_short.xml: deleted. 15 of its 16 queries are date_time_long ClickHouse#49, 76, 94, 131, 141, 144, 106, 146, 148, 152, 160, 170, 171, 109, 121. Its only other query, toUnixTimestamp(toUInt16(t)), is appended to date_time_long as ClickHouse#172 (no other index of date_time_long moves). - external_distinct_tail_spill #0, ClickHouse#2, ClickHouse#3: same as external_distinct_coalescing #0, external_distinct_spill_blocks ClickHouse#1 and external_distinct_limit_remerge #0. ClickHouse#1, ClickHouse#4, ClickHouse#5 become #0, ClickHouse#1, ClickHouse#2; the header comment no longer mentions ordered output. - if_transform_strings_to_enum #0, ClickHouse#1 (without the setting): same as group_by_no_aggregates_string_keys #0, ClickHouse#1. ClickHouse#2, ClickHouse#3 become #0, ClickHouse#1. - cpu_synthetic ClickHouse#25 (cutQueryString(URL) on hits_100m_single): same as url_hits ClickHouse#20. ClickHouse#26-ClickHouse#39 become ClickHouse#25-ClickHouse#38. - hash_table_sizes_stats ClickHouse#13 (min(MobilePhoneModel)): same as agg_functions_min_max_any ClickHouse#16. It was the last query, nothing moves. - prefetch_in_aggregation ClickHouse#4, ClickHouse#5 (numbers/numbers_mt(10000000) GROUP BY number): same as hash_table_sizes_stats ClickHouse#1, ClickHouse#3. The template is pinned to 50000000; ClickHouse#6-ClickHouse#13 become ClickHouse#4-ClickHouse#11. - uniq_up_to_saturated_hash #0 (uniqUpTo(5)(SearchPhrase)): same as uniq_hits_no_key_other ClickHouse#48. ClickHouse#1 becomes #0. max_size_to_preallocate_for_aggregation = 1e9 in hash_table_sizes_stats does not make its copies a different path: it only matters above 1e9 / 16 groups per table, and these queries have at most 10M groups. Kept as different paths: parse_engine_file ClickHouse#3 / tsv_csv_nullable_parsing ClickHouse#1 (different tables), string_sort ClickHouse#10 / top_k_dynamic_filtering_single_string_column ClickHouse#2 (the latter sets use_query_condition_cache = 1), text_index ClickHouse#31-ClickHouse#33 / text_index_phrase_blocked ClickHouse#4-ClickHouse#6 (different text indexes and settings). 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 (5 nits, no blocker or major).
Checked and holding: every removed query text, file-level setting and table matches its surviving copy ( Session id: cron:clickhouse-review-slot-8:20261104-144900 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-41:20261104-144003 |
|
cc @egor-click, could you review this and add the |
|
Workflow [PR], commit [d038e8e] Summary: ✅
AI ReviewSummaryPR #129303, head Final VerdictStatus: ✅ Approve. No required changes. |
cdf882f
Add separate instrumented shards to `NightlyCoverage`. Reuse `perf.py` to collect setup, first execution, repeated execution, and teardown coverage, with expanded-query hashes and snapshot manifests. Export source coverage through the existing CIDB coverage pipeline; do not publish performance measurements from instrumented runs. Context: ClickHouse#129176 ClickHouse#129303
Related: #129258
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Item 4 of #129258: queries measured with the same text, settings and tables in two files outside the
tpch*/tpcds*/iceberg_suite_*suites. I removed one copy of each:date_time_short: deleted. 15 of its 16 queries aredate_time_longMetr 18844 #49, 76, 94, 106, 109, 121, 131, 141, 144, 146, 148, 152, 160, 170, 171; the 16th (toUnixTimestamp(toUInt16(t))) moves to the end ofdate_time_long.external_distinct_tail_spill#0, Repair subtree2 #2, BaseDaemon: terminate on double SIGINT #3 =external_distinct_coalescing#0,external_distinct_spill_blocksRepair subtree2 #1,external_distinct_limit_remerge#0.if_transform_strings_to_enum#0, Repair subtree2 #1 (setting off) =group_by_no_aggregates_string_keys#0, Repair subtree2 #1.cpu_syntheticadd Enums to English reference #25 =url_hitsMissing SSE 4.2 -- Cannot start on Intel(r) Xeon(r) CPU E5-2630 v3 @ 2.40GHz #20.hash_table_sizes_statsUpdate Docker files for Docker Hub #13 =agg_functions_min_max_anymake clean: remove debian/*.docs generated links #16.prefetch_in_aggregationdoc: fix typo #4, Extra include for std::mt19937_64 #5 =hash_table_sizes_statsRepair subtree2 #1, BaseDaemon: terminate on double SIGINT #3 (the template is pinned to 50000000).uniq_up_to_saturated_hash#0 =uniq_hits_no_key_otherFilters do not work on a sorted integer column with negative values #48.The 14-day master medians of each pair are equal within 3% per arch. Kept as different paths:
parse_engine_file#3 /tsv_csv_nullable_parsing#1 (different tables),string_sort#10 /top_k_dynamic_filtering_single_string_column#2 (use_query_condition_cache = 1),text_index#31-33 /text_index_phrase_blocked#4-6 (different indexes and settings).Later queries move down:
external_distinct_tail_spill#1, #4, #5 to #0-2,if_transform_strings_to_enum#2, #3 to #0, #1,cpu_synthetic#26-39 to #25-38,prefetch_in_aggregation#6-13 to #4-11,uniq_up_to_saturated_hash#1 to #0. All their learned thresholds are below the report's floors (0.15 / 0.25), so their effective thresholds stay the same.This saves about 50 s per arch per master commit: the whole
date_time_shortfile, and the removed queries of the three small files that run all their queries. The other three files sample 10 queries anyway. A remaining copy in a file with more than 10 queries (for example the 15date_timequeries anduniqUpTo(5)(SearchPhrase)) runs on master when that file's random 10 picks it; nightly runs every query.Validated with
perf.py --print-querieson all files before and after: besides the removed queries and the moved one, every expanded query is byte-identical.Workflow [PR]
Sync PR [sync-upstream/pr/129303]
Version info
26.11.1.1365-master(included in26.11and later)