Skip to content

Add a nightly performance test: TPC-DS SF100 over Iceberg - #131427

Merged
Blargian merged 1 commit into
ClickHouse:masterfrom
groeneai:iceberg-tpcds-sf100-perf-test
Nov 17, 2026
Merged

Blargian merged 1 commit into
ClickHouse:masterfrom
groeneai:iceberg-tpcds-sf100-perf-test

Conversation

@groeneai

@groeneai groeneai commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #123553
Related: #130763

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

Requested on #123553: TPC-DS at SF10 and SF100 over Iceberg, like the SF1 iceberg_suite_local_tpcds.xml (#130763).

iceberg_suite_local_tpcds_sf100.xml is a long test of NightlyExtendedPerformance, pinned to batch 2/4:

  • the 24 tables of tpcds_sf100.xml are loaded from the same ds/scale_100 files into MergeTree staging tables (FixedString as String) and copied to IcebergLocal tables under user_files in primary-key order with one insert stream (about 1M rows per data file); the staging tables are dropped before the queries, and the nightly removes the copies after the test;
  • the 98 queries of iceberg_suite_local_tpcds.xml, plus use_datalake_metadata_statistics = 1, so the manifest statistics reach join reordering.

No SF10: 34 of the 61 files in ds/scale_10 are copies of ds/scale_1 (store_sales has 2,878,334 rows instead of 28,800,991). With a complete upload, SF10 is this file with scale_10 and its row counts.

Validation: x86 amd_release of the base commit, one server on 16 CPUs, perf.py --long with the nightly flags. All row-count checks pass, 98/98 queries run, peak memory 19.2 GiB, teardown-complete. Setup took 8.6 min and the queries 52.7 min, vs 58.4 min for tpcds_sf100.xml run at the same time, which projects to about 3.0 h in the nightly (per-test budget 4 h). Copies of web_returns from two separate loads have identical data files.


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

Version info

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

`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]>
@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review: adjudication log (click to expand)

Pre-publication review by an independent model (engine: codex; 2 rounds, 2 findings) and my own review (2 rounds, 4 findings).

# Sev Finding Verdict Evidence / action
1 ⚠️ The reason given for IcebergS3 over IcebergLocal was wrong: the nightly removes user_files entries after every test (cleanup_user_files in ci/jobs/performance_tests.py) AGREE, fixed copies are IcebergLocal tables, as in iceberg_suite_local_tpcds.xml
2 ⚠️ The time budget was measured on MinIO, while the nightly S3 is SeaweedFS AGREE, fixed no S3 layer with IcebergLocal; re-measured: about 3.0 h of the 4 h per-test budget
3 ⚠️ No setup assertion that the manifest statistics reach join reordering DISAGREE a nightly perf test reports old-vs-new timings, not plan checks; the mechanism is asserted by 05292_iceberg_manifest_stats_join_order.sh and the other *_iceberg_manifest_stats_* tests
4 💡 The description said the test takes all settings of the SF1 test; the writer settings differ AGREE, fixed description corrected
5 💡 use_datalake_metadata_statistics = 1 is not set in the SF1 test noted, not blocking stated in the description

Severity: ❌ blocker / ⚠️ major / 💡 nit. DISAGREE verdicts carry recorded evidence and are terminal per finding.

Session id: cron:clickhouse-review-slot-9:20261113-201900

@groeneai

Copy link
Copy Markdown
Collaborator Author

cc @murphy-4o, could you review this? It adds a long NightlyExtendedPerformance test that runs the 98 TPC-DS queries of iceberg_suite_local_tpcds.xml over IcebergLocal copies of the SF100 dataset with use_datalake_metadata_statistics = 1 (about 3 h of the 4 h per-test budget).

@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? N/A: a new performance test, nothing fails. Its validation is one full perf.py --long run with the nightly flags on an amd_release binary of the base commit: rc 0, teardown-complete.
b Root cause explained? N/A: requested benchmark (#123553), the SF100 counterpart of the SF1 test (#130763).
c Fix matches root cause? N/A: the PR adds only the requested test, its nightly placement and one README line.
d Test intent preserved / new tests added? The new file is the test. All 816 measured runs had use_datalake_metadata_statistics = 1 (checked in system.query_log), so the Iceberg manifest statistics reach join reordering. Existing tests untouched.
e Both directions demonstrated? N/A for a new perf test.
f Fix is general across code paths? N/A (test-only). SF10 is not included: 34 of 61 ds/scale_10 files are copies of ds/scale_1.
g Fix generalizes across inputs (params/datatypes/wrappers)? All 24 tables and all 98 queries of the SF1 test, 0 query exceptions; 24/24 row-count checks of tpcds_sf100.xml pass on the IcebergLocal copies.
h Backward compatible? (maintainer-approved exception only) Test-only. A reference binary without the setting would make the run partial; the setting is on master since 2026-11-12.
i Invariants and contracts preserved? Projected 3.0 h of the 4 h per-test budget (ratio to tpcds_sf100.xml run at the same time); peak memory 19.2 GiB; staging tables dropped before the queries; copies of web_returns from two loads have identical data files; the 38 GiB of copies under user_files are removed by the nightly after the test.

Session id: cron:clickhouse-impl-slot-7:20261113-190500

@clickhouse-gh

clickhouse-gh Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [42e1064]

Summary: ✅


AI Review

Summary

Adds a nightly TPC-DS SF100 benchmark over 24 IcebergLocal tables, reusing the 98 queries from the SF1 Iceberg benchmark with use_datalake_metadata_statistics = 1, and assigns it to batch 2/4. Reviewed PR head 42e106422c4042ba0c534cd28d9f159930b17c6c and all prior discussion; no actionable findings.

Missing context / blind spots
  • ⚠️ No local ClickHouse binary was available, and the PR performance jobs are skipped. Execution evidence is the author's reported successful single-server run of all 98 queries, including setup assertions and teardown. A two-server run on the configured nightly runner would independently confirm the projected runtime against the four-hour test budget.
Final Verdict

Status: ✅ Approve. No changes requested.

@clickhouse-gh clickhouse-gh Bot added pr-not-for-changelog This PR should not be mentioned in the changelog can be tested Allows running workflows for external contributors manual approve Manual approve required to run CI comp-testing Test content only (no production code). labels Nov 13, 2026
@murphy-4o murphy-4o self-assigned this Nov 17, 2026
@murphy-4o
murphy-4o added this pull request to the merge queue Nov 17, 2026
@Blargian
Blargian removed this pull request from the merge queue due to a manual request Nov 17, 2026
@Blargian
Blargian added this pull request to the merge queue Nov 17, 2026
Merged via the queue into ClickHouse:master with commit f905a40 Nov 17, 2026
410 of 411 checks passed
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Nov 17, 2026
@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

can be tested Allows running workflows for external contributors comp-iceberg Apache Iceberg tables: reading and writing Iceberg metadata (snapshots, manifests, schema evoluti... manual approve Manual approve required to run CI 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.

4 participants