Repository navigation
Add ClickBench short-queries perf test on a single Parquet file - #104368
Merged
Merged
Conversation
Contributor
|
Workflow [PR], commit [8d61ee1] Summary: ✅ AI ReviewSummaryThis PR adds a new performance test, ClickHouse Rules
Final Verdict
|
Adds tests/performance/clickbench_parquet_short.xml: a regression guard for short ClickBench queries running against a single Parquet file via the `file()` table function. Generates the fixture on the fly so no large download is required. The fixture mirrors the ClickBench `hits` schema (105 columns) with 1M rows split into ~16 row groups so the single-file Parquet read path's bucketing across multiple sources is engaged. The query set is the short subset of ClickBench (Q1/Q2/Q3/Q4/Q7/Q19) plus Q20 as a heavy-scan counterweight. Motivation: changes to the Parquet read path (e.g. row-group bucketing, footer-cache invalidation, count-cache bypass) can add a per-query startup floor of tens to hundreds of milliseconds, which is invisible on heavy queries but multiplies short queries by 3x-12x. This test catches such regressions before they reach master. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
alexey-milovidov
force-pushed
the
perf-clickbench-parquet-short
branch
from
May 8, 2026 12:01
31aab68 to
8d61ee1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
tests/performance/clickbench_parquet_short.xml: a regression guard for short ClickBench queries running against a single Parquet file via thefiletable function. The fixture is generated on the fly withgenerateRandom, so no large external download is needed.The synthetic file mirrors the ClickBench
hitsschema (105 columns), with 1M rows split into ~16 row groups (output_format_parquet_row_group_size = 50000) so that the single-file Parquet read path's bucketing across multiple sources is actually engaged on multi-core CI runners.The query set is the short subset of ClickBench (Q1, Q2, Q3, Q4, Q7, Q19) plus Q20 as a heavy-scan counterweight:
COUNT(*), light aggregates,MIN/MAX, point-lookup filter) catch per-query startup-overhead regressions in the Parquet read path — e.g. trivial-count cache bypassed when bucketing engages, or the footer parsed once per bucket without a cache. These add tens to hundreds of milliseconds per query, which is invisible on heavy queries but multiplies short ones by 3x-12x.URL LIKE '%google%') is the heavy text scan that bucket-splitting is meant to speed up — a healthy change keeps the short queries flat and ideally improves Q20.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Documentation entry for user-facing changes
Version info
26.5.1.445