Skip to content

Add a TPC-DS performance test over Iceberg - #130763

Merged
murphy-4o merged 2 commits into
ClickHouse:masterfrom
murphy-4o:perf-iceberg-tpcds
Nov 12, 2026
Merged

murphy-4o merged 2 commits into
ClickHouse:masterfrom
murphy-4o:perf-iceberg-tpcds

Conversation

@murphy-4o

@murphy-4o murphy-4o commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Description

Adds iceberg_suite_local_tpcds.xml: the 98 queries and settings of tpcds.xml over an IcebergLocal copy of the tpcds SF1 dataset, so Iceberg reads get a TPC-DS benchmark next to the MergeTree one. The perf suites have only TPC-H on Iceberg so far.


Workflow [PR]
Sync PR [sync-upstream/pr/130763]

Version info

  • Merged into: 26.11.1.2058-master (included in 26.11 and later)

@clickhouse-gh

clickhouse-gh Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [6e0f7cc]

Summary: ✅


AI Review

Summary

Adds a TPC-DS SF1 benchmark using 24 temporary IcebergLocal tables and the 98 SQL query files shared with tpcds.xml. Reviewed head 6e0f7cc26e457a4b0ec1c678e057a763866ba838; no actionable findings.

Missing context / blind spots
  • ⚠️ SQL execution, runtime, and repeatability were not verified locally: no ClickHouse binary or populated dataset was available. The current CI reports contain no benchmark execution results. A completed performance-harness run of this XML would close this gap; validation here covered the XML, shared queries, dataset schemas, and harness code.
Final Verdict

Status: ✅ Approve. No changes requested from static review.

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Nov 11, 2026
@murphy-4o
murphy-4o marked this pull request as ready for review November 11, 2026 12:06
@clickhouse-gh clickhouse-gh Bot added the comp-testing Test content only (no production code). label Nov 11, 2026
@murphy-4o
murphy-4o added this pull request to the merge queue Nov 12, 2026
Merged via the queue into ClickHouse:master with commit af5c835 Nov 12, 2026
370 of 371 checks passed
@murphy-4o
murphy-4o deleted the perf-iceberg-tpcds branch November 12, 2026 08:10
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label Nov 12, 2026
valerypetrov pushed a commit to valerypetrov/ClickHouse that referenced this pull request Nov 17, 2026
`iceberg_suite_local_tpcds_sf100.xml` runs the 98 queries of
`iceberg_suite_local_tpcds.xml` (SF1) over Iceberg copies of the
`tpcds_sf100.xml` tables. The data is loaded from the same
`ds/scale_100` files into MergeTree staging tables, copied to
`IcebergLocal` tables under `user_files` in primary-key order with
one insert stream (about 1M rows per data file, the same files on both
servers), and the staging tables are dropped before the queries.
`use_datalake_metadata_statistics = 1` lets the Iceberg manifest
statistics reach join reordering, which the test exists to measure.

The copies are `IcebergLocal` tables under `user_files`, as in
`iceberg_suite_local_tpcds.xml`. A dropped table keeps its files; the
nightly removes them after every test (`cleanup_user_files` in
`ci/jobs/performance_tests.py`).

The test is tagged `long` and pinned to `NightlyExtendedPerformance`
batch `2/4`. No SF10 variant: the public `ds/scale_10` files are mostly
copies of `ds/scale_1`.

Related: ClickHouse#123553, ClickHouse#130763

Co-Authored-By: Claude Opus 5.5 <[email protected]>
mosya415 pushed a commit to mosya415/ClickHouse that referenced this pull request Nov 22, 2026
The check of the tests a PR adds or changes (ClickHouse#129330) failed a PR only when
a query's time grows run over run on the tested server. A test whose runs
are noisy without a trend passed its own PR, and in master_head PR mode the
report's own unstable/changed verdict never fails a PR. That is how
system_clusters_replicated_databases (ClickHouse#122223) got in: tested-server
spread (stddevPop / median of its runs) 0.41-2.1 in its PR, now > 0.5 on
both master servers in about 99% of runs and the noisiest test on master.

The check now also fails on an unstable query of such a test:

- PR changes only files under tests/ and the reference is the performance
  reference build of the tested master commit's sources (find_prev_build's
  new third value; a reference of an older commit, as in about a quarter
  of PR jobs, does not count): both servers run the same code built the
  same way, so the report's verdict judges the test; fail on changed_fail
  or unstable_fail of report/all-queries.tsv. A query that failed on the
  reference server and ran only on the tested one is not in that file; it
  is judged by the rule below.
- Any other PR or reference (code changes, the official-build fallback, or
  an older reference): the report measures the PR's change, not the test
  (the floors flag 79% of the heads of the 214 code PRs that changed a
  perf test in 2026-11-12..21, their own speedups). Fail when stddevPop /
  median of the tested server's runs is above 0.5 (at least 5 runs). A
  spread the change causes also fails: after the merge both master servers
  run that code.

The bar 0.5 flags 0.5% of those code-PR heads and 0.2% of quiet tests'
master heads (CIDB backtest), and all 4 jobs of ClickHouse#122223. A query the trend
check already reports gets only its trend row. The reading loop of
find_run_trends moves to read_query_runs, shared by both checks;
run_trend_gate becomes changed_tests_gate.

Validated locally on downloaded job logs (no test of the test
infrastructure): ClickHouse#122223's 4 jobs fail (the old check passes them); the
new tests of ClickHouse#129328, ClickHouse#124553, ClickHouse#131203 (code PRs) and the tests-only
ClickHouse#130763, ClickHouse#129627 pass; the run-trend output is unchanged on all 1754 tests
of 14 jobs.

Related: ClickHouse#100759

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@clickhouse-gh clickhouse-gh Bot added comp-iceberg Apache Iceberg tables: reading and writing Iceberg metadata (snapshots, manifests, schema evoluti... and removed comp-testing Test content only (no production code). labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-iceberg Apache Iceberg tables: reading and writing Iceberg metadata (snapshots, manifests, schema evoluti... pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants