Skip to content

Add IcebergLocal performance tests - #116065

Merged
arsenmuk merged 6 commits into
masterfrom
arsenmuk/ClickHouse-public-iceberg-perf-ci-proto
Sep 9, 2026
Merged

arsenmuk merged 6 commits into
masterfrom
arsenmuk/ClickHouse-public-iceberg-perf-ci-proto

Conversation

@arsenmuk

@arsenmuk arsenmuk commented Aug 24, 2026 •

Copy link
Copy Markdown
Member

Performance tests for IcebergLocal:

  • using new dataset tpch_ice10 (traditional tpch sf10 pre-stored in Iceberg format)
  • iceberg_suite_tpch.xml - regular tpch suite against it
  • iceberg_suite_write.xml - long and short independent writes
  • iceberg_suite_read.xml - reusing pre-loaded tpch_ice10 dataset to benchmark read features
  • iceberg_suite_rw_features.xml - creates independent tables to validate various rw features

Changelog category (leave one):

  • Build/Testing/Packaging Improvement

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

Add IcebergLocal performance tests covering read, insert and mutation paths.


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

@clickhouse-gh

clickhouse-gh Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [a43c2d6]

Summary: ✅


AI Review

Summary

This PR wires a new shared tpch_ice10 dataset into the performance harness and adds four IcebergLocal suites for TPC-H, read-path, append-only write, and RW-feature benchmarks. The harness integration is close, but several benchmarks still do not exercise the paths their comments or suite structure claim, and the new dataset plumbing regresses reused local/staged runs because the cached-download marker is not invalidated when the required dataset set changes.

Findings

⚠️ Majors

  • [ci/jobs/performance_tests.py:1997, ci/jobs/collect_clickhouse_profiles.py:222] Both download helpers still treat db0/.done as "all datasets are current". A workspace populated before this PR skips the new tpch_ice10 tarball, yet both jobs now always attach tpch_ice10, so the first tpch_ice10.* query fails on a missing user_files/tpch_ice_sf10 path. Suggested fix: version the marker by the dataset set/URLs, or verify the expected Iceberg directory exists before returning early.

  • [tests/performance/iceberg_suite_rw_features.xml:59] update_partition_key_move is still a stateful benchmark that perf.py mutates permanently during prewarm. After the prewarm ALTER, the timed runs update rows already in partition X, so they no longer exercise the cross-partition move the comment says they measure. Suggested fix: recreate/reset the table per run, or move this case into a shell benchmark that performs setup inside the timed unit.

  • [tests/performance/iceberg_suite_rw_features.xml:157-180] manifest_grid still does not create five 10K-row files per commit. MultipleFileWriter::consume only rolls over before the next chunk, and these INSERT ... LIMIT 50000 ... iceberg_insert_max_rows_in_data_file = 10000 statements never cap the incoming block size, so each insert can still be written as one 50K-row file. Suggested fix: cap max_block_size together with matching min_insert_block_size_* settings for those setup inserts.

  • [tests/performance/iceberg_suite_read.xml:29-30] [dismissed by author -- https://github.com/ClickHouse/ClickHouse/pull/116065#discussion_r3850195555] minmax_prune_edge still filters on the month-partitioned l_shipdate with use_iceberg_partition_pruning left at its default 1, so the skipped files are counted as IcebergPartitionPrunedFiles, not the min-max pruning the comment claims. Suggested fix: disable partition pruning for this query or filter on a non-partition column.

  • [tests/performance/iceberg_suite_tpch.xml:3, tests/performance/iceberg_suite_read.xml:1] [dismissed by author -- https://github.com/ClickHouse/ClickHouse/pull/116065#discussion_r3875011216] These fixed multi-query suites still do not opt out of --max-queries 10. performance_tests.py always passes --soft-max-queries, and perf.py only runs the full suite when the XML root has run_all_queries="1". As written, CI samples 10 random queries instead of running the advertised full TPC-H and read suites. Suggested fix: add run_all_queries="1" to both <test> roots.

  • [tests/performance/iceberg_suite_rw_features.xml:61-64, 73-76, 79-82] [dismissed by author -- https://github.com/ClickHouse/ClickHouse/pull/116065#discussion_r3949402539] sorted_li, small_files, and upd_files still rely on iceberg_insert_max_rows_in_data_file without capping the source block size. Because MultipleFileWriter::consume never splits a chunk mid-file, those setups still produce one file per source block instead of the advertised 50K/1K/10K layouts, so the benchmarks do not cover the intended file-count behavior. Suggested fix: add matching max_block_size and min_insert_block_size_* caps, like tests/performance/iceberg_manifest_entries.xml does.

Final Verdict

⚠️ Needs changes before merge. The dataset wiring is almost there, but the current patch still leaves several benchmark contracts broken enough that the resulting CI numbers would be misleading.

@clickhouse-gh clickhouse-gh Bot added the pr-build Pull request with build/testing/packaging improvement label Aug 24, 2026
</create_query>

<fill_query>
INSERT INTO iceberg_suite_lineitem SELECT * FROM tpch10.lineitem

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need more tables, because it's useful to also check the cases when:

  1. we have one/many data files per manifest file
  2. we have one/many manifest files per manifest list

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, this is just a proto - wanna see the new reports, and profiling data. Will ping you once it's more or less ready

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's done in rw_features.xml tests now

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new manifest_grid block still does not cover the "many data files per manifest" half of this. Each INSERT ... LIMIT 50000 ... iceberg_insert_max_rows_in_data_file = 10000 at tests/performance/iceberg_suite_rw_features.xml:157-168 is a single 50K-row chunk, and MultipleFileWriter::consume only rotates before the next incoming chunk (src/Storages/ObjectStorage/DataLakes/Iceberg/MultipleFileWriter.cpp:70-79). So each commit still produces one data file and one manifest entry; the added cases cover many manifests, but not many entries per manifest.

@scanhex12 scanhex12 self-assigned this Aug 24, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing c7487ef98 with master 3594fb131 (stripped binary size, per-symbol sizes and ThinLTO time; object sizes against the warmup build of 8396165e8; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Object file sizes

8 object files changed (+48.79 KiB total), 0 added.

Object file Master PR Δ
src/CMakeFiles/dbms.dir/Storages/StorageFileCluster.cpp.o 346.41 KiB 371.27 KiB +24.86 KiB (+7.18%)
src/CMakeFiles/dbms.dir/Storages/StorageFile.cpp.o 1.08 MiB 1.10 MiB +21.23 KiB (+1.92%)

716 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only clickhouse-bundle) and not compared.

Compile time of recompiled translation units

8 translation units recompiled, 29 s compile time in total, 8 of them have a recent master baseline.

Job report

@arsenmuk arsenmuk added the pr-performance Pull request with some performance improvements label Aug 25, 2026
Comment thread tests/performance/scripts/perf.py Resolved
@arsenmuk
arsenmuk force-pushed the arsenmuk/ClickHouse-public-iceberg-perf-ci-proto branch from cce01f8 to e074825 Compare August 27, 2026 09:38
arsenmuk added a commit that referenced this pull request Aug 31, 2026
In CI, `perf.py` runs only 10 random queries of each test (`--max-queries 10`),
except for a hardcoded filename allowlist of whole-suite benchmarks in
`ci/jobs/performance_tests.py`. Replace the allowlist with a per-test root
attribute `<test run_all_queries="1">`, parsed by `perf.py` itself: the
property now lives in the test file, survives renames, and applies to any
invocation, not only the CI wrapper.

#116065 (comment)

Co-Authored-By: Claude Fable 5 <[email protected]>
arsenmuk added a commit that referenced this pull request Aug 31, 2026
Add the TPC-H SF10 `IcebergLocal` dataset and a TPC-H suite over it
(`iceberg_suite_tpch.xml`: the 22 queries of `tpch.xml`, unchanged, against
Iceberg tables), and register the dataset in both consumers of
`tests/performance/*.xml`:

- the performance-comparison job downloads the tarball and attaches the
  `tpch_ice10` database on both servers;
- the PGO/BOLT profile-collection job does the same for its single server,
  so the Iceberg suites contribute coverage to the collected profiles
  instead of failing on a missing database.

The dataset catalog `ICEBERG_DATASETS` and the DDL generator
`iceberg_database_ddl_commands` live in `ci/jobs/scripts/dataset_download.py`,
shared by both jobs. The DDL cannot ship in the tarball because `IcebergLocal`
stores an absolute path that differs per server.

#116065 (comment)

Co-Authored-By: Claude Fable 5 <[email protected]>
@arsenmuk
arsenmuk force-pushed the arsenmuk/ClickHouse-public-iceberg-perf-ci-proto branch 2 times, most recently from 93c05de to 179d7a6 Compare August 31, 2026 14:33
arsenmuk added a commit that referenced this pull request Aug 31, 2026
In CI, `perf.py` runs only 10 random queries of each test (`--max-queries 10`),
except for a hardcoded filename allowlist of whole-suite benchmarks in
`ci/jobs/performance_tests.py`. Replace the allowlist with a per-test root
attribute `<test run_all_queries="1">`, parsed by `perf.py` itself: the
property now lives in the test file, survives renames, and applies to any
invocation, not only the CI wrapper.

#116065 (comment)

Co-Authored-By: Claude Fable 5 <[email protected]>
arsenmuk added a commit that referenced this pull request Aug 31, 2026
Add the TPC-H SF10 `IcebergLocal` dataset and a TPC-H suite over it
(`iceberg_suite_tpch.xml`: the 22 queries of `tpch.xml`, unchanged, against
Iceberg tables), and register the dataset in both consumers of
`tests/performance/*.xml`:

- the performance-comparison job downloads the tarball and attaches the
  `tpch_ice10` database on both servers;
- the PGO/BOLT profile-collection job does the same for its single server,
  so the Iceberg suites contribute coverage to the collected profiles
  instead of failing on a missing database.

The dataset catalog `ICEBERG_DATASETS` and the DDL generator
`iceberg_database_ddl_commands` live in `ci/jobs/scripts/dataset_download.py`,
shared by both jobs. The DDL cannot ship in the tarball because `IcebergLocal`
stores an absolute path that differs per server.

#116065 (comment)

Co-Authored-By: Claude Fable 5 <[email protected]>
arsenmuk added a commit that referenced this pull request Sep 1, 2026
In CI, `perf.py` runs only 10 random queries of each test (`--max-queries 10`),
except for a hardcoded filename allowlist of whole-suite benchmarks in
`ci/jobs/performance_tests.py`. Replace the allowlist with a per-test root
attribute `<test run_all_queries="1">`, parsed by `perf.py` itself: the
property now lives in the test file, survives renames, and applies to any
invocation, not only the CI wrapper.

#116065 (comment)

Co-Authored-By: Claude Fable 5 <[email protected]>
arsenmuk added a commit that referenced this pull request Sep 1, 2026
Add the TPC-H SF10 `IcebergLocal` dataset and a TPC-H suite over it
(`iceberg_suite_tpch.xml`: the 22 queries of `tpch.xml`, unchanged, against
Iceberg tables), and register the dataset in both consumers of
`tests/performance/*.xml`:

- the performance-comparison job downloads the tarball and attaches the
  `tpch_ice10` database on both servers;
- the PGO/BOLT profile-collection job does the same for its single server,
  so the Iceberg suites contribute coverage to the collected profiles
  instead of failing on a missing database.

The dataset catalog `ICEBERG_DATASETS` and the DDL generator
`iceberg_database_ddl_commands` live in `ci/jobs/scripts/dataset_download.py`,
shared by both jobs. The DDL cannot ship in the tarball because `IcebergLocal`
stores an absolute path that differs per server.

#116065 (comment)

Co-Authored-By: Claude Fable 5 <[email protected]>
@arsenmuk
arsenmuk force-pushed the arsenmuk/ClickHouse-public-iceberg-perf-ci-proto branch from 179d7a6 to 6c1004c Compare September 1, 2026 07:29
Comment thread tests/performance/scripts/perf.py Resolved
@arsenmuk
arsenmuk force-pushed the arsenmuk/ClickHouse-public-iceberg-perf-ci-proto branch from 6c1004c to 07e63a1 Compare September 3, 2026 07:57
arsenmuk added a commit that referenced this pull request Sep 3, 2026
In CI, `perf.py` runs only 10 random queries of each test (`--max-queries 10`),
except for a hardcoded filename allowlist of whole-suite benchmarks in
`ci/jobs/performance_tests.py`. Replace the allowlist with a per-test root
attribute `<test run_all_queries="1">`, parsed by `perf.py` itself: the
property now lives in the test file, survives renames, and applies to any
invocation, not only the CI wrapper.

#116065 (comment)

Co-Authored-By: Claude Fable 5 <[email protected]>
arsenmuk added a commit that referenced this pull request Sep 3, 2026
Add the TPC-H SF10 `IcebergLocal` dataset and a TPC-H suite over it
(`iceberg_suite_tpch.xml`: the 22 queries of `tpch.xml`, unchanged, against
Iceberg tables), and register the dataset in both consumers of
`tests/performance/*.xml`:

- the performance-comparison job downloads the tarball and attaches the
  `tpch_ice10` database on both servers;
- the PGO/BOLT profile-collection job does the same for its single server,
  so the Iceberg suites contribute coverage to the collected profiles
  instead of failing on a missing database.

The dataset catalog `ICEBERG_DATASETS` and the DDL generator
`iceberg_database_ddl_commands` live in `ci/jobs/scripts/dataset_download.py`,
shared by both jobs. The DDL cannot ship in the tarball because `IcebergLocal`
stores an absolute path that differs per server.

#116065 (comment)

Co-Authored-By: Claude Fable 5 <[email protected]>
@clickhouse-gh clickhouse-gh Bot added the comp-testing Test content only (no production code). label Sep 4, 2026
arsenmuk added a commit that referenced this pull request Sep 7, 2026
In CI, `perf.py` runs only 10 random queries of each test (`--max-queries 10`),
except for a hardcoded filename allowlist of whole-suite benchmarks in
`ci/jobs/performance_tests.py`. Replace the allowlist with a per-test root
attribute `<test run_all_queries="1">`, parsed by `perf.py` itself: the
property now lives in the test file, survives renames, and applies to any
invocation, not only the CI wrapper.

#116065 (comment)

Co-Authored-By: Claude Fable 5 <[email protected]>
@arsenmuk
arsenmuk force-pushed the arsenmuk/ClickHouse-public-iceberg-perf-ci-proto branch from 07e63a1 to ef675d1 Compare September 7, 2026 10:19
arsenmuk added a commit that referenced this pull request Sep 7, 2026
Add the TPC-H SF10 `IcebergLocal` dataset and a TPC-H suite over it
(`iceberg_suite_tpch.xml`: the 22 queries of `tpch.xml`, unchanged, against
Iceberg tables), and register the dataset in both consumers of
`tests/performance/*.xml`:

- the performance-comparison job downloads the tarball and attaches the
  `tpch_ice10` database on both servers;
- the PGO/BOLT profile-collection job does the same for its single server,
  so the Iceberg suites contribute coverage to the collected profiles
  instead of failing on a missing database.

The dataset catalog `ICEBERG_DATASETS` and the DDL generator
`iceberg_database_ddl_commands` live in `ci/jobs/scripts/dataset_download.py`,
shared by both jobs. The DDL cannot ship in the tarball because `IcebergLocal`
stores an absolute path that differs per server.

#116065 (comment)

Co-Authored-By: Claude Fable 5 <[email protected]>
<create_query>DROP TABLE IF EXISTS {database}.upd_part</create_query>
<create_query>CREATE TABLE {database}.upd_part (l_orderkey Int32, l_returnflag String, l_quantity Float64) ENGINE = IcebergLocal((SELECT value FROM system.server_settings WHERE name = 'user_files_path') || '/upd_part_' || toString(toUnixTimestamp64Micro(now64(6))) || '/', 'Parquet') PARTITION BY (l_returnflag)</create_query>
<create_query>INSERT INTO {database}.upd_part SELECT l_orderkey, l_returnflag, l_quantity FROM tpch10.lineitem LIMIT 200000 SETTINGS max_threads = 1, max_insert_threads = 1</create_query>
<query>ALTER TABLE {database}.upd_part UPDATE l_returnflag = 'X' WHERE l_orderkey % 5 = 0</query>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perf.py prewarms every query once before it starts timing measured runs (tests/performance/scripts/perf.py, lines 890-940). For this case the prewarm already rewrites the l_orderkey % 5 = 0 rows and moves them into partition X, so the timed runs no longer exercise the cross-partition move the comment claims to benchmark. They only measure the follow-up same-value update on already-moved rows. This needs a per-run recreate/reset or a harness that does its setup inside the timed unit.

@arsenmuk
arsenmuk force-pushed the arsenmuk/ClickHouse-public-iceberg-perf-ci-proto branch from c7487ef to 780ae98 Compare September 8, 2026 09:41
arsenmuk added a commit that referenced this pull request Sep 8, 2026
In CI, `perf.py` runs only 10 random queries of each test (`--max-queries 10`),
except for a hardcoded filename allowlist of whole-suite benchmarks in
`ci/jobs/performance_tests.py`. Replace the allowlist with a per-test root
attribute `<test run_all_queries="1">`, parsed by `perf.py` itself: the
property now lives in the test file, survives renames, and applies to any
invocation, not only the CI wrapper.

#116065 (comment)

Co-Authored-By: Claude Fable 5 <[email protected]>
arsenmuk added a commit that referenced this pull request Sep 8, 2026
Add the TPC-H SF10 `IcebergLocal` dataset and a TPC-H suite over it
(`iceberg_suite_tpch.xml`: the 22 queries of `tpch.xml`, unchanged, against
Iceberg tables), and register the dataset in both consumers of
`tests/performance/*.xml`:

- the performance-comparison job downloads the tarball and attaches the
  `tpch_ice10` database on both servers;
- the PGO/BOLT profile-collection job does the same for its single server,
  so the Iceberg suites contribute coverage to the collected profiles
  instead of failing on a missing database.

The dataset catalog `ICEBERG_DATASETS` and the DDL generator
`iceberg_database_ddl_commands` live in `ci/jobs/scripts/dataset_download.py`,
shared by both jobs. The DDL cannot ship in the tarball because `IcebergLocal`
stores an absolute path that differs per server.

#116065 (comment)

Co-Authored-By: Claude Fable 5 <[email protected]>
Comment thread ci/jobs/performance_tests.py Resolved
<test profile_all_queries="1" run_all_queries="1">
<settings>
<allow_insert_into_iceberg>1</allow_insert_into_iceberg>
<mutations_sync>2</mutations_sync>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need this setting?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch, thanks, I didn't know it's redundant in this case

<!-- minmax_secondary_column: filter the non-partition l_receiptdate with partition pruning off, so only per-file min/max stats can skip files. -->
<query>SELECT count(), sum(l_quantity) FROM {database}.lineitem WHERE l_receiptdate = toDate('1994-06-15') SETTINGS use_iceberg_partition_pruning = 0</query>

<!-- prune_negative_control: predicate spans every file's range, nothing prunes, so the walk over all manifest entries is paid every run. -->

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And do we have any query that can show performance improvement on parallel manifest decoding?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I just added few new scenarios to rw_features.xml - b827fe2
it should cover these

arsenmuk and others added 4 commits September 8, 2026 13:55
Add the TPC-H SF10 `IcebergLocal` dataset and a TPC-H suite over it
(`iceberg_suite_tpch.xml`: the 22 queries of `tpch.xml`, unchanged, against
Iceberg tables), and register the dataset in both consumers of
`tests/performance/*.xml`:

- the performance-comparison job downloads the tarball and attaches the
  `tpch_ice10` database on both servers;
- the PGO/BOLT profile-collection job does the same for its single server,
  so the Iceberg suites contribute coverage to the collected profiles
  instead of failing on a missing database.

The dataset catalog `ICEBERG_DATASETS` and the DDL generator
`iceberg_database_ddl_commands` live in `ci/jobs/scripts/dataset_download.py`,
shared by both jobs. The DDL cannot ship in the tarball because `IcebergLocal`
stores an absolute path that differs per server.

#116065 (comment)

Co-Authored-By: Claude Fable 5 <[email protected]>
Add three Iceberg performance suites over the shipped tpch_ice10 dataset:

- iceberg_suite_read.xml: the read-path aspects the TPC-H scans cannot isolate -
  metadata cost, the pruning layers, PREWHERE, in-file push-down, parallelism,
  table resolution and time travel.
- iceberg_suite_write.xml: a single-table pipeline exercising insert, many small
  commits, compaction, mutations, schema evolution, position deletes and manifest
  optimization; the small-commit batch lives in write_small_commits.sql.
- iceberg_suite_rw_features.xml: per-feature tables for schema-evolution reads,
  hidden-partition transforms and pruning, sort order plus min/max, nested types
  and many-small-files.

Every scenario comment is a single line.
Twelve single-partition commits of five files each: a detector for
manifest-list partition-summary pruning (the summary is written but not
yet read for skipping) and a serial-vs-parallel
`iceberg_manifest_decode_concurrency` pair.

Related: #116065 (comment)
Related: #116065 (comment)
Related: #116065 (comment)
@arsenmuk
arsenmuk force-pushed the arsenmuk/ClickHouse-public-iceberg-perf-ci-proto branch from 780ae98 to b827fe2 Compare September 8, 2026 12:48
<!-- manifest_grid: twelve single-partition commits of five data files each - many manifests, many entries per manifest. -->
<create_query>DROP TABLE IF EXISTS {database}.manifest_grid</create_query>
<create_query>CREATE TABLE {database}.manifest_grid (l_orderkey Int32, l_quantity Float64, l_month Int32) ENGINE = IcebergLocal((SELECT value FROM system.server_settings WHERE name = 'user_files_path') || '/manifest_grid_' || toString(toUnixTimestamp64Micro(now64(6))) || '/', 'Parquet') PARTITION BY (l_month)</create_query>
<create_query>INSERT INTO {database}.manifest_grid SELECT l_orderkey, l_quantity, 199401 AS l_month FROM tpch10.lineitem LIMIT 0, 50000 SETTINGS max_threads = 1, max_insert_threads = 1, iceberg_insert_max_rows_in_data_file = 10000</create_query>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iceberg_insert_max_rows_in_data_file still does not shape this table the way the comment claims. MultipleFileWriter::consume only rolls over before the next incoming chunk; it never splits a chunk mid-file. With LIMIT 50000 and no matching max_block_size / min_insert_block_size_* cap, each tpch10.lineitem insert here is a single 50K-row chunk, so every commit still produces one file, not five 10K-row files.

That means manifest_grid covers "many manifests", but not the new "many entries per manifest" case this block was added for. The same root cause also leaves update_every_file above as a one-file rewrite instead of the advertised three-file case. Please cap the source blocks too, or seed this table with a helper that emits 10K-row chunks.

@arsenmuk
arsenmuk marked this pull request as ready for review September 8, 2026 13:00
arsenmuk added a commit that referenced this pull request Sep 8, 2026
In CI, `perf.py` runs only 10 random queries of each test (`--max-queries 10`),
except for a hardcoded filename allowlist of whole-suite benchmarks in
`ci/jobs/performance_tests.py`. Replace the allowlist with a per-test root
attribute `<test run_all_queries="1">`, parsed by `perf.py` itself: the
property now lives in the test file, survives renames, and applies to any
invocation, not only the CI wrapper.

#116065 (comment)

Co-Authored-By: Claude Fable 5 <[email protected]>
arsenmuk added a commit that referenced this pull request Sep 8, 2026
In CI, `perf.py` runs only 10 random queries of each test (`--max-queries 10`),
except for a hardcoded filename allowlist of whole-suite benchmarks in
`ci/jobs/performance_tests.py`. Replace the allowlist with a per-test root
attribute `<test run_all_queries="1">`, parsed by `perf.py` itself: the
property now lives in the test file, survives renames, and applies to any
invocation, not only the CI wrapper.

#116065 (comment)

Co-Authored-By: Claude Fable 5 <[email protected]>

@scanhex12 scanhex12 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, maybe I'll come up with new ideas what to test later, but right now seems good

<create_query>INSERT INTO {database}.del_pos SELECT l_orderkey, l_quantity FROM tpch10.lineitem LIMIT 50000 SETTINGS max_threads = 1, max_insert_threads = 1</create_query>
<query>ALTER TABLE {database}.del_pos DELETE WHERE l_orderkey % 7 = 0</query>

<!-- mor_read_position_deletes_roaring: position deletes are written at setup, so every run is a full roaring-bitmap merge-on-read scan over fixed state. -->

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we test also the streaming path of position deletes?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, done as the query below

"hits1": "https://clickhouse-datasets.s3.amazonaws.com/hits/partitions/hits_v1.tar",
"values": "https://clickhouse-datasets.s3.amazonaws.com/values_with_expressions/partitions/test_values.tar",
"tpch10": "https://clickhouse-datasets.s3.amazonaws.com/h/10/tpch_sf10.tar",
"tpch_ice10": "https://clickhouse-datasets.s3.amazonaws.com/h-ice/10/tpch_ice_sf10.tar",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

download_datasets still treats db0/.done as "all required tarballs are already present". On a reused ci/tmp/perf_wd from before this PR, that marker suppresses the new tpch_ice10 download, but Configure now always attaches tpch_ice10, so the first tpch_ice10.* query fails on a missing user_files/tpch_ice_sf10 path. ci/jobs/collect_clickhouse_profiles.py has the same early-return logic for the same new tarball. Please version the marker by the dataset set/URLs, or at least verify that the expected Iceberg directory exists before returning early.

@arsenmuk
arsenmuk added this pull request to the merge queue Sep 9, 2026
Merged via the queue into master with commit 37b6bbe Sep 9, 2026
174 checks passed
@arsenmuk
arsenmuk deleted the arsenmuk/ClickHouse-public-iceberg-perf-ci-proto branch September 9, 2026 19:28
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 9, 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

comp-iceberg Apache Iceberg tables: reading and writing Iceberg metadata (snapshots, manifests, schema evoluti... pr-build Pull request with build/testing/packaging improvement pr-performance Pull request with some performance improvements 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.

3 participants