Repository navigation
Description
The audit asked for in #129176. Numbers are per master commit (one run of the six amd and six arm master_head shards), from the raw per-test logs (logs.tar.zst) of fa87701 and 4f752f7 (2026-11-04) and from CIDB default.checks.
Where the time goes
Sum over the six shards of each architecture, 844 tests, in minutes:
| amd | arm | |
|---|---|---|
| measured query runs | 203-206 | 187-188 |
| prewarm runs | 57-58 | 47 |
| profiling of changed queries | 20-22 | 10-14 |
| result digest and other run-stage time | 50-52 | 50-51 |
create/fill, sync, drop |
85 | 88 |
| benchmark phase | 424-433 | 391-396 |
Each shard also pays about 21 min of setup (Select historical data 5, Populate 14) and 3.5-6 min after the tests. 465 of the 844 files existed on 2026-06-01; 379 were added since (June 42, July 53, August 64, September 124, October 95), and they take 176 of the 428 amd minutes.
1. Result digest (#128261, merged 2026-11-03 01:17 UTC)
Every FORMAT Null query now runs once more per server as SELECT count(), sum(cityHash64(toString(tuple(...)))) FROM (<query>). Run-stage time outside the measured runs, prewarm and profiling was 7.5 min (amd) and 9.8 min (arm) per commit on febcc95 (2026-11-02), and 50-52 min on each of the three commits I checked after the merge. It sits in the queries with huge results: bfloat16 +257 s, unary_logical_functions +190 s, hash_join_with_row_store +164 s, sparse_grams +108 s; 37 of the 50 minutes are in tests with a digested result above 200,000 rows, the size at which the client-side digest already gives up. amd shard duration went from p50 92.4 / p90 101.5 min (24 h before, 0 timeouts in 336 runs) to p50 99.7 / p90 112.9 (13 timeouts in 508 runs since); arm from 83.1 / 91.2 to 88.8 / 103.5.
2. Long queries
268-276 queries per amd run have a median above 1 s. With prewarm and 5-7 runs on two servers they cost 96-99 min, 23% of the benchmark. 137 files have at least one; the 20 most expensive files carry 44 min. The top ones (amd minutes per run in those queries):
| test | min | PR |
|---|---|---|
sparse_grams + sparse_grams_index_build |
7.0 | #78176, #110541 |
window_functions_* (5 files) |
6.0 | #122542 |
prefetch_in_aggregation |
3.3 | #39304 |
hash_join_with_row_store + join_lazy_indexing |
5.1 | #104884, #98883 |
adaptive_aggregation_heavy_payload |
3.1 | #115755 |
ascii |
2.9 | #61632 |
threshold_top_k_merge |
2.0 | #116101 |
bfloat16 |
1.8 (+4.3 min of digest) | #77449 |
3. Duplicated queries
5 queries repeat verbatim inside their own file: agg_functions_argmin_argmax #1/#5, avg_weighted #5/#6, hash_table_sizes_stats #2/#4 and #3/#5, joins_in_memory #25/#26. 197 query texts occur in more than one file, but almost all are TPC-H queries in files that differ by settings or table engine (tpch, tpch-join_algorithm-partial_merge, the iceberg_suite_*_tpch files), so not the same path. Note for the same-path duplicates: 155 files have more than 10 queries and no run_all_queries, and the master_head job runs a random 10 of them per test (--max-queries 10), so removing duplicates there does not save time, it only lets the other queries run more often. I will look for same-type, same-length duplicates file by file in the PRs below.
4. Duplicated files
The 16 iceberg_suite_* files (#119147, #119976) take 14.4 amd minutes per run; the TPC-H part repeats tpch.xml on Iceberg, which the Iceberg configuration of #128261 now does nightly and in pull requests that change Iceberg code. @arsenmuk, are they still needed in every master commit, or is the nightly Iceberg configuration enough?
Other families share a fill only partly (polymorphic_parts_{s,m,l}, qbit_l2_distance_*), so merging them saves little; I will merge them where a PR above touches the same files.
5. amd vs arm
Same tests, same setup, different hosts. amd runs on m7i.4xlarge (8 physical cores, 16 hyperthreads; both servers pinned to the 8 cores with max_threads = 8), arm on m8g.4xlarge (16 cores, max_threads = 12). Single-threaded queries take the same time on both (amd/arm median 0.96 over 653 queries), multi-threaded ones are 13% slower on amd (median 1.13 over 2189). amd also profiles about twice as many queries as changed (116-125 vs 57-76 per commit, 10 s each), and the log export and report take about 2 min more per shard. Over all queries above 50 ms, amd/arm was 1.10-1.15 per day in the week before the pinning (f694e80, July) and is 1.12-1.14 now, so the pinning is not the cause. So an amd shard runs about 10 min longer than an arm shard with the same tests and crosses 120 min first.
PRs, one per item
-
perf.py: the cost of the server-side result digest, Make the perf result digest opt-in, disabled by default #129279 (makes the digest opt-in, CI does not enable it) - Remove the 5 verbatim duplicate queries, Add a
disabledattribute to performance test queries, and disable five verbatim duplicates #129366 -
Merge, Merge the threeqbit_l2_distance_{bfloat16,float32,float64}_memoryinto one fileqbit_l2_distance_*_memoryperformance tests into one file #129364 closed: withdisabledqueries the merge saves nothing -
Merge, Merge the polymorphic_parts_{s,m,l} performance tests into one #129457 closed: withpolymorphic_parts_{s,m,l}into one filedisabledqueries the merge saves nothing - Cross-file repeats outside the
tpch*/tpcds*/iceberg_suite_*files (date_time_shortvsdate_time_long, 11 other file pairs), Remove performance test queries that are also measured in another file #129303 -
window_functions_*: the 30 queries above 1 s (or sharing their tables) disabled, smaller copies appended, Replace the window function performance queries above 1 s with smaller copies #129627 -
sparse_grams,sparse_grams_index_build: same, Run the long sparse_grams performance queries on fewer rows #129628 -
hash_join_with_row_store,join_lazy_indexing: same for all 60join_lazy_indexingqueries and 6 of the 18hash_join_with_row_storequeries, Run the join_lazy_indexing and three hash_join_with_row_store performance queries on smaller tables #131196 -
bfloat16: thenumbers(1000000000)query disabled, anumbers(300000000)version appended, Run the bfloat16 performance test queries on 300 million rows #129626 -
prefetch_in_aggregation: the two single-threadednumbers(50000000)queries disabled, 20 million row versions appended, Run the single-threaded prefetch_in_aggregation performance queries on 20 million rows #129625 -
adaptive_aggregation_heavy_payload: the fourhits_100m_singlequeries above 1 s disabled, the fivehits_100m_singlequeries appended onhits_10m_single, Run the adaptive_aggregation_heavy_payload performance queries above 1 s on hits_10m_single #129655 -
ascii: the 14 queries disabled, the same calls appended withformat Nullon per-query row counts (the old ones mostly measured the client receiving 10M rows), Run the ascii performance test queries with format Null #131252 -
threshold_top_k_merge: no PR needed, its queries run at 0.08-0.59 s on amd since Clear libfiu's fast-path flag when the last fail point is disabled #129334 (the 2.0 min was the libfiu slowdown) -
hash_join_with_row_store_strings: the short and variable-length string joins (4 of 6 queries) disabled and appended on 3M-row builds with a 30M-row probe; the 2Nullable(String)queries keep their 10M-row build, where the row store speedup holds, Run the short and variable-length string joins of hash_join_with_row_store_strings on smaller tables #131570 -
codecs_t64_select: the 16 queries (all above 1 s on arm) disabled, the same queries appended with a quarter of theirLIMIT; each copy keeps 86-103% of its original's speedup across the T64 optimisations of Revert "Revert "Four optimisations ofT64decompression"" #122442, Run the codecs_t64_select performance queries on a quarter of the rows #131605 -
kway_merge_expensive_comparator: the collation and single-column string sorts (queries 2 and 3) disabled, appended on a quarter of the rows in blocks of a quarter of the size, so every merge keeps its number of cursors; the collation copy keeps the speedups of K-way merge optimizations: batch lookahead, sorted array of cursors, batch queue for special merges #115869 and FasterORDER BY ... COLLATE: compare UTF-8 directly in ICU #126829 (1.159x vs 1.161x, 2.111x vs 2.179x) and the string copy, like its original, shows neither, Run two kway_merge_expensive_comparator sorts on a quarter of the rows #131660 -
adaptive_aggregation_top_k_threshold: queries 0, 2, 3 and 6 disabled and appended onhits_10m_single; the copies stay on the adaptive top-K path and keep the speedup of Faster top-KGROUP BYan ascending order or with a largeLIMITin Adaptive Aggregator #130281 (1.17x-1.47x vs 1.20x-1.42x); query 1 stays, its Faster top-KGROUP BYan ascending order or with a largeLIMITin Adaptive Aggregator #130281 effect is below the A/A noise, Run four adaptive_aggregation_top_k_threshold queries on hits_10m_single #131677 -
agg_functions_argmin_argmax: no PR needed; onhits_10m_singleits five queries above 1 s get 10 rows per group instead of 85 and lose the speedups of Batch the -ForEach aggregate combinator's accumulation #121137 and Reduce Adaptive Aggregator memory usage #128495 (1.04x vs 1.20x, 1.11x vs 1.32x) -
jit_sort: the three{table}queries disabled; their plain-table expansions appended verbatim and theirNullable(UInt64)expansions on half of every block (WHERE key % 2 = 0); the copies move like the originals on the four MasterCI build pairs that moved these queries by 11-18% (1.27-1.31x vs 1.22-1.30x, 0.78x vs 0.77-0.81x), Run six jit_sort queries above 1 s on half of their rows #131761 -
streaming_queries_read_round: on hold until Enable the columns cache by default #123890 (columns cache on by default) is merged or closed; in its perf run the three queries take 0.37-0.48 s on amd instead of 2.2-2.5 s, so I will re-measure the file then -
hierarchical_dictionaries: no test change; its fivedictGetDescendantsqueries zeroed the whole loop-detection set after every key with children (about 52 GB of memset per query), which is now aClearableHashSet; locally 0.98-1.04 s become 0.13-0.18 s, Speed up dictGetDescendants and dictGetChildren for blocks with many parent keys #131775 -
uniq_multi_place: its one query (21 entries) disabled and appended over 64 to 1024 groups, dropping the 2048- and 4096-group entries (1.03-2.96 s on amd); at 1024 groups the batched prefetch insert of Speed up grouped approximate distinct aggregation #119594 keeps 69-128% of its 2048/4096-group speedup on MasterCI, Run the uniq_multi_place performance query for up to 1024 groups #131785 -
external_set: query 13 (a set 2.4 times its cache, 3.43 s on amd) disabled and appended at a quarter of its scale (the set, its cache, the lookups and the rows per chunk), so the set is again 2.4 times its cache; the copy keeps 95% of the speedup of ExternalIN: Optimized Disk Set (2/2) #124907 (2.13x vs 2.19x); query 2 (1.34 s) stays, a copy on 15M rows writes smaller parts, Run a smaller copy of the external_set performance query 13 #131824 -
text_index_postprocessor_filter: its two queries (4 entries: three stop-word drop rates and theNOT INform, 1.07-1.27 s on amd) disabled and appended reading the first 500k of their 3M rows, so each insert writes one part of 500k rows instead of three parallel parts of about 1M; the copies keep 0.77-1.05 of the speedup of Text index: pre-insert the postprocessor stop words into the token map #111690 (1.28-1.37x vs 1.28-1.43x), Run the text_index_postprocessor_filter performance inserts on 500k rows #131857 -
group_by_dynamic_keys: theDynamic-key and JSON-subcolumnGROUP BYqueries (2.79 s and 1.56 s on amd, one group per row) disabled and appended on 400k rows, the JSON fill resized in place; theStringcontrol stays; the copies keep 84-92% of the speedup of Do not prefetch in aggregation when building the key holder is expensive #112316, Run the group_by_dynamic_keys performance queries on 400k rows #131871 -
polymorphic_parts_l: the Buffer INSERT (query 2, 2.30 s on amd) disabled and appended on 20 parts of the same 1000 rows; the copy keeps 100-110% of the slowdown of Support max_insert_threads for plain INSERTs #109000; the wide INSERT (1.68 s) stays, a 20-part copy of it missed the per-part statistics cost of Materialize column statistics on INSERT for small tables by default #109454 in one of four passes, Run the polymorphic_parts_l Buffer insert on 20 parts #131888 -
clickbench: no PR needed; its three queries above 1 s on amd (28, 33, 34: 1.29-1.36 s) take 0.84-0.88 s on arm at the same user time (amd runsmax_threads = 8, arm 12), and A few improvements to ClickBench performance test #94334 already moved these queries tohits_10m_singleand back to keep the longer benchmark queries -
polymorphic_parts_m: the wide and Buffer INSERTs (queries 0 and 2, 1.59 s and 2.19 s on amd) disabled and appended on 20 parts of the same 100 rows; the compact INSERT keeps its 100 parts; the Buffer copy keeps 80-104% of the slowdown of Support max_insert_threads for plain INSERTs #109000 and the wide copy 93-97% of its original's per-part user time increase across Materialize column statistics on INSERT for small tables by default #109454 (statistics per written part, 30 runs per server), Run the polymorphic_parts_m performance inserts on 20 parts #131896 -
uniq_states_read_merge: thefinalizeAggregationandGROUP BY k % 1000uniqMergequeries (queries 0 and 2, 1.30 s and 2.29 s on amd) disabled and appended on the first quarter of the same 5M tiny states (WHERE k < 1250000), so each GROUP BY set ends at a quarter of the size with the same fill; the GROUP BY copy keeps 86-99.5% of the speedup of Avoid per-state heap allocation in UniquesHashSet::read and batch merge #111493 and the finalizeAggregation copy 94% of the slowdown of the Check memory limit after reading or copying aggregate function states #129553 build, Run the uniq_states_read_merge performance queries above 1 s on a quarter of the states #131912 -
insert_values_with_expressions: query 0 (3.47 s on amd), whose Values template compiles thereplaceRegexpAllpattern once per row (92% of the query; a cache of the compiled patterns was closed in Per-call cache of non-constantreplaceRegexpAll/replaceRegexpOnepatterns #122850), disabled and appended withlimit 10000, the first 10000 of its 100000 rows in one block; the copy's per-row time is 0.94-0.97 of the original's, with 90-91% of it inreplaceRegexpAll(92% for the original), Run the insert_values_with_expressions performance query above 1 s on the first 10000 rows #131933 -
array_sort_numeric: thearraySortandarrayReverseSort{type}queries (entries 0-19; theInt128andUInt256ones take 1.49-2.43 s on amd) disabled; their 16 sub-second expansions appended verbatim and the four wide ones onnumbers(500000), the same 32-element array blocks, 8 instead of 31; theUInt256copy moves like its original across Useclang-23#117346 (0.922 / 0.916 vs 0.911 / 0.916); theDecimal128sort (1.60 s) stays, its copy kept under half of the base: define wraparound in ignore-overflow helpers #120808 effect in one of four passes, Run the Int128 and UInt256 array_sort_numeric performance queries on a quarter of their rows #132174 -
aggregation_two_level_bucket_merge: no PR needed; its twokeys256queries (1.72 s and 1.73 s on amd) measure the growth of the bucket merge's destination table that Reserve the destination hash table when merging two-level aggregation buckets #117193 reserves, which needs the file's 20M groups: on a quarter of the groups the copies lose the Reserve the destination hash table when merging two-level aggregation buckets #117193 effect (0.99-1.00 vs 0.96-0.97), on half they keep 0.4-0.9 of it at about 0.85 s; Pack fixed-width keys in cache-sized chunks and batch-pack keys of any width #131393 (batch packing of their keys) takes them to 0.55-0.67 of their time -
lazy_columns_replication: query 0 (randomString(1024 * 1024)witharrayJoin(range(10240)), 3.41 s on amd) disabled; since Lower ArrayJoin with nondeterministic functions #122240 a non-deterministic function next toarrayJoinis evaluated once per output row, so it built 10240 strings of 1 MiB and replicated none; the same query with the string from a subquery appended as query 2, whicharrayJoinreplicates again: 0.002-0.003 s, and over 1000x slower withenable_lazy_columns_replication = 0on the builds before Lower ArrayJoin with nondeterministic functions #122240, of its merge, and of master, Make thelazy_columns_replicationarrayJoinquery measure lazy replication again #132196 -
re2_regex_caching: thelikeandmatch{needle_*}queries (entries 2-7; the all-unique-pattern entries 2 and 5 take 1.79 s and 1.57 s on amd) disabled; their four low-distinctness patterns appended verbatim and the two all-unique ones on every 4th number of the same range withmax_block_size = 16384, the same 23 blocks with one regexp compilation per row; the copies move like the originals across Enable stack canaries #119039 and Useclang-23#117346 (1.027 vs 1.028-1.029, 0.964-0.970 vs 0.960-0.976), Run the all-unique-pattern queries ofre2_regex_cachingon a quarter of their rows #132233 -
text_index_build_tokenizers: on hold until Add the regexpMasked tokenizer for text indexes #131868 (theregexpMaskedtokenizer, three more INSERTs on the same fill) is merged or closed; any change to the file conflicts with it, and its three queries (1.06-1.12 s on amd, 1.01-1.09 s on arm) will be handled with its new ones in one PR -
generate_random_json: theJSON(max_dynamic_paths = 4)andDynamicqueries (1.30 s and 1.99 s on amd) disabled and appended on half and a third of their rows (LIMIT 1500000,LIMIT 100000000), the same seeds, schema and blocks; the copies take 0.98-1.00 of their originals' user time per row on two master builds and theJSONcopy keeps 0.95-0.99 of the 1-to-8-thread reference counter contention that Do not share the reference counter of cached serializations between threads #122464 removes, Run theJSON(max_dynamic_paths = 4)andDynamicqueries ofgenerate_random_jsonon half and a third of their rows #132277 -
constant_column_search: the sixmultiMatchAnyqueries and themultiSearchFirstIndexquery onhits_100m_single(4, 7, 11, 15, 17, 18, 21; 1.16-1.52 s on amd) disabled and appended onhits_10m_singleas 28-34, the table the file already uses for its other variants; per row the copies take 0.98-1.05 of their originals' user time, and across thevectorscan5.4.13 update of Bumpvectorscanfrom 5.4.11 to 5.4.13 #125774 the copies of 4, 7, 11, 15 and 18 slow down by 3-28% (the originals by 4-25%), Run theconstant_column_searchqueries above 1 s onhits_10m_single#132300 -
formats_columns_nullable: its 11 queries (88 entries) disabled; their 66 sub-second expansions appended verbatim and the 22JSONEachRowandAvroones (20 of them 1.00-2.51 s on amd) on new tables of a quarter of the rows (id < 250000), still read whole with default parallel parsing; per row the copies take 0.98-1.04 of their originals' user time, and across Enable stack canaries #119039 theAvrocopies move 1.044-1.058 (the originals 1.048-1.056) and theJSONEachRowcopies 1.0145 (the originals 1.0172), Run theJSONEachRowandAvroqueries offormats_columns_nullableon a quarter of the rows #132357 -
string_bytes_functions: no test change; its query 1 (sum(stringBytesEntropy(s))over 256M strings of 0 or 1 byte, 3.1 s on amd) zero-filled and scanned all 256 byte counters for every row, which now covers only the byte range of the row, with bit-identical results; locally 2.5 s become 0.17 s, Speed upstringBytesEntropyon short strings #132415
Then the next files of the long-query list, in order of cost.
Activity
Algunenano commentedon Nov 4, 2026
@groeneai Start by removing duplicated queries and or merge those files together. For tcph and similar prefer keeping those files.
groeneai commentedon Nov 4, 2026
Acknowledged. I'll keep
tpch*,tpcds*and theiceberg_suite_*files as they are, and do the rest in this order, one PR each:qbit_l2_distance_{bfloat16,float32,float64}_memory: three copies that differ only in the element type and its precisions, merged into one file.polymorphic_parts_{s,m,l}: same tables and fill, they differ only in the insert block size, row counts andasync_insert, merged into one file.date_time_shortqueries are also indate_time_long, and 15 single queries are shared by 11 other file pairs. For each I'll check whether the settings or the table definition make it a different path, and remove the copy where they don't.I'll post each PR link here.
Do not enable the perf result digest in nightly runs either
groeneai commentedon Nov 4, 2026
Item 4: #129303. It deletes
date_time_short(15 of its 16 queries are indate_time_long, the 16th moves there) and removes 10 more copies from 8 file pairs. Three pairs are different paths and stay:parse_engine_fileBaseDaemon: terminate on double SIGINT #3 /tsv_csv_nullable_parsingRepair subtree2 #1: different tables.string_sortsome doc typo fixes #10 /top_k_dynamic_filtering_single_string_columnRepair subtree2 #2: the latter setsuse_query_condition_cache = 1.text_indexadded 'questions' section to English reference #31-33 /text_index_phrase_blockeddoc: fix typo #4-6: different indexes and settings.Make the perf result digest opt-in, enable it only in nightly runs
Remove performance test queries that are also measured in another file
groeneai commentedon Nov 4, 2026
Item 2: #129364. It merges
qbit_l2_distance_{bfloat16,float32,float64}_memoryinto oneqbit_l2_distance_memoryfile with the same six queries on the same tables and data (byte-identical after thetab_<Type>totab_<bits>rename). The perf history is keyed by test name, so the merged test starts at the default thresholds.groeneai commentedon Nov 4, 2026
Item 1: #129366. It removes the later copy of each of the 5 in-file duplicates from section 3. Every one was a
<query>element written twice; thehash_table_sizes_statsrepeat is not a warmed-statistics run, since both copies share one statistics cache entry. The 23 queries after a removed copy move up one index.groeneai commentedon Nov 4, 2026
The rest of this series is on hold: @ egor-click asked to stop it until his coverage-based perf runs experiment has results (#129366 (comment)). #129279 and #129303 are merged, #129364 and #129366 stay open, and I won't open the remaining items until he says to resume.
Algunenano commentedon Nov 5, 2026
This is not finished. The performance tests are in awful shape (it's way better than before, but it's still really bad) so we must continue
groeneai commentedon Nov 5, 2026
Resuming. #129364 and #129366 are open again and CI has started on both. The remaining items above follow as one PR each (the
polymorphic_parts_{s,m,l}merge, then the four shrink items), then the next files of the long-query list in order of cost. I'll post each PR here and ping you on it.47 remaining items
groeneai commentedon Nov 17, 2026
text_index_build_tokenizersis on hold. Its three INSERT queries take 1.06-1.12 s on amd and 1.01-1.09 s on arm, each writing one part of 500000 rows on one thread. #131868 appends three more INSERTs on the same fill to this file: any change here, even the threedisabledmarkers alone, conflicts with it, and appended copies would take the query numbers of its new queries. I will re-measure the file once #131868 is merged or closed and handle all its queries in one PR.Next:
generate_random_json(itsJSON(max_dynamic_paths = 4)andDynamicqueries take 1.30 s and 1.98 s on amd, 0.95 s and 1.44 s on arm).Run the four array_sort_numeric performance queries above 1 s on a qu…
groeneai commentedon Nov 17, 2026
Next item: #132277,
generate_random_json. ItsJSON(max_dynamic_paths = 4)query (3M rows) andDynamicquery (300M rows) take 1.30 s and 1.99 s on amd and 0.95 s and 1.44 s on arm, all of itgenerateRandomwork. The PR disables both and appends them withLIMIT 1500000andLIMIT 100000000: the same seeds, schema and block size, so each stream generates fewer of the same blocks. No existing query number or text changes. On two official master builds 7 weeks apart the copies take 0.98-1.00 of their originals' user time per row, and theJSON(max_dynamic_paths = 4)copy keeps 0.95-0.99 of its original's growth in per-row CPU from 1 to 8 threads, the shared reference counter contention that the open #122464 removes. That is about 24 s less query time per master perf job on amd and 17 s on arm.Next:
constant_column_search(seven of its 28 queries take 1.16-1.52 s on amd; on arm one, 1.04 s).groeneai commentedon Nov 17, 2026
Next item: #132300,
constant_column_search. Seven of its 28 queries (sixmultiMatchAnyand onemultiSearchFirstIndex) scan all 100MURLvalues ofhits_100m_singleand take 1.16-1.52 s on amd and 0.70-1.04 s on arm. Thevectorscandatabase is compiled once and cached, so the time is the per-row scan. The PR disables the seven and appends the same queries onhits_10m_singleas 28-34, the table this file already uses for its othermatch,multiMatchAnyandmultiSearchAnyvariants. No existing query number or text changes. Per row the copies take 0.98-1.05 of their originals' user time, and across thevectorscan5.4.13 update of #125774, which slowed queries 4, 7, 11, 15 and 18 by 4-25%, their copies slow down by 3-28% (17 and 21 stay flat in both). That is about 37 s less query time per master perf job on amd and 24 s on arm.Next:
formats_columns_nullable(20 of its 88 queries take 1.00-2.51 s on amd and 1.09-2.90 s on arm, all of themAvroandJSONEachRowexpansions).groeneai commentedon Nov 17, 2026
Next item: #132357,
formats_columns_nullable. Its 20 queries above 1 s are allJSONEachRowandAvroexpansions (1.00-2.51 s on amd, 1.09-2.90 s on arm): each reads all 2M rows of itsFiletable,Avroon one thread,JSONEachRowfrom a 1 GB file. Adisabledmarker covers all eight formats of a query, so the PR disables the 11 queries and appends them as 88-175: the 66 sub-second expansions verbatim, and the 22JSONEachRowandAvroones on new tables of a quarter of the rows (id < 250000), still read whole with default parallel parsing as #123691 set up. No existing query number or text changes. Per row the copies take 0.98-1.04 of their originals' user time, and across #119039, which movedAvroentry 19 by 6.7% on MasterCI, theAvrooriginals moved 1.048-1.056 locally and their copies 1.044-1.058 (JSONEachRow: 1.0172 and 1.0145). That is about 21 s less query time per master perf job on amd and 23 s on arm.Next:
string_bytes_functions(one of its 4 queries,sum(stringBytesEntropy(s))over 256M strings of zero or one byte, takes 3.12 s on amd and 2.48 s on arm on every master commit).groeneai commentedon Nov 17, 2026
Next item: #132415,
string_bytes_functions. Its query 1 (sum(stringBytesEntropy(s))over 256M strings of zero or one byte, 3.12 s on amd and 2.48 s on arm) measured only the function's per-row fixed cost: every row zero-filled a 1 KiB table of 256 byte counters and then scanned all of them. The PR changes no test:stringBytesEntropynow scans only the range of byte values that occur in the row, with bit-identical results. Locally query 1 goes from 2.5 s to 0.17 s and queries 0, 2 and 3 stay at 0.97-1.00 of their time, which is about 2.9 s less query time per master perf job on amd (arm not measured locally).Next:
add_distinct_to_in_clause(its query 0, theenable_add_distinct_to_in_subqueries = 0half of its pair, takes 3.07 s on amd and 2.83 s on arm on every master commit).Algunenano commentedon Nov 17, 2026
@groeneai Please list the PRs pending review and throttle things. This is impossible to follow
groeneai commentedon Nov 17, 2026
Open PRs of this series, all waiting for review (20 merged and 2 closed so far):
adaptive_aggregation_heavy_payloadhits_10m_single(0.17-0.46 s projected)hash_join_with_row_store_stringsjit_sorthierarchical_dictionaries(engine fix indictGetDescendants)lazy_columns_replication(approved)re2_regex_cachinggenerate_random_jsonconstant_column_searchformats_columns_nullablestring_bytes_functions(engine fix instringBytesEntropy, CI running)Throttle, starting now: I will not open another PR in this series until these are merged or closed. After that I will keep at most 3 open at a time and post here once per batch, not once per file.
add_distinct_to_in_clause, announced above, is paused before its PR. If you prefer one combined PR per batch of files instead, say so.Make the `lazy_columns_replication` `arrayJoin` query measure lazy re…
Run the `JSONEachRow` and `Avro` queries of `formats_columns_nullable…
Run the hash_join_with_row_store_strings short and var joins on small…
Run the all-unique-pattern queries of `re2_regex_caching` on a quarte…
Run the `JSON(max_dynamic_paths = 4)` and `Dynamic` queries of `gener…
Run the `constant_column_search` queries above 1 s on `hits_10m_single`
Speed up `stringBytesEntropy` on short strings