Skip to content

Fix Iceberg manifest partition value encoding - #109286

Open
Diskein wants to merge 27 commits into
masterfrom
dk-iceberg-partition-value-encoding
Open

Diskein wants to merge 27 commits into
masterfrom
dk-iceberg-partition-value-encoding

Conversation

@Diskein

@Diskein Diskein commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

Related: #105198

Fixes Iceberg manifest partition value encoding from the declared partition type and writes persisted partition-spec field names and ids into manifest partition records. Iceberg timestamp_ns (DateTime64(9)) partition fields stay rejected on purpose: the vendored Avro library cannot read timestamp-nanos back, so the manifest rewrite path could not consume them. Iceberg time partition fields are now written as an Avro long, matching the specification and the manifest rewrite paths, which rebuild the partition type from the persisted metadata as Int64.

Changelog category (leave one):

  • Bug Fix

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

Fixes INSERT into Iceberg tables partitioned by UInt8/UInt16/UInt32 columns, DateTime64, Float32, or icebergBucket, writes manifest partition field names and ids from the table partition spec so external Iceberg readers interpret partition values correctly, and writes Iceberg time partition fields as a 64-bit value as the specification requires.


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

@clickhouse-gh

clickhouse-gh Bot commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [2491794]

Summary: ✅


AI Review

Summary

This PR fixes several real manifest-write mismatches in the Iceberg path: it now chooses Avro partition datums from the declared partition type, reuses persisted partition-spec field names and ids, and aligns time partition width on the write and rewrite paths. I do not think the current head is ready to merge, because two partition-contract violations are still present on touched Iceberg write/rewrite paths: one compaction/history-rewrite branch still rewrites manifests under the table’s current default spec, and UUID partition fields are still declared as supported but fail during manifest encoding.

Findings

❌ Blockers

  • [dismissed by author -- https://github.com/Fix Iceberg manifest partition value encoding #109286#discussion_r3520883939] [src/Storages/ObjectStorage/DataLakes/Iceberg/Compaction.cpp:1118-1241] The history-rewrite compaction path still hardcodes f_default_spec_id / partititon_spec and derives partition_columns / partition_types from that default spec before calling generateManifestFile. The sibling compaction path at Compaction.cpp:848-882 was fixed to resolve pd.partition_spec_id, but this branch still throws away each source manifest’s original spec. On any table whose partition spec evolved, rewriting history will serialize old partition tuples under the wrong field ids, names, and semantics, which can silently corrupt time-travel reads and external Iceberg readers. Suggested fix: thread the source manifest’s partition_spec_id and resolved spec through this branch too, or explicitly reject mixed-spec history instead of rewriting it.

⚠️ Majors

  • [dismissed by author -- https://github.com/Fix Iceberg manifest partition value encoding #109286#discussion_r3519795569] [src/Storages/ObjectStorage/DataLakes/Iceberg/Utils.cpp:625-630,755-757; src/Storages/ObjectStorage/DataLakes/Iceberg/IcebergWrites.cpp:175-217] UUID partition fields are still advertised as supported (getIcebergType emits uuid, getAvroType maps them to Avro string), but convertToAvro still has no TypeIndex::UUID arm and falls into the Unsupported type to write into avro file exception. So CREATE TABLE ... PARTITION BY uuid_col still succeeds while INSERT fails on the manifest-writing path. Suggested fix: either add UUID encoding in convertToAvro (and keep the readback path consistent) or reject UUID partition fields up front instead of accepting a table definition that cannot be written.
Final Verdict

Status: ⚠️ Request changes
Minimum required actions:

  • Preserve each rewritten manifest’s original partition spec in the Compaction.cpp:1118-1241 history-rewrite branch, or fail closed on mixed-spec history.
  • Make UUID partition fields either fully writable or explicitly unsupported at table-definition time.

LLVM Coverage Report

Measured on commit 2491794.

Metric Baseline Current Δ
Lines 88.10% 88.10% +0.00%
Functions 91.70% 91.70% +0.00%
Branches 79.40% 79.40% +0.00%

Changed lines: Changed C/C++ lines covered: 89/127 (70.08%) · Uncovered code

Full report · Diff report

@clickhouse-gh clickhouse-gh Bot added the pr-improvement Pull request with some product improvements label Jul 3, 2026
Diskein added a commit that referenced this pull request Jul 3, 2026
The manifest partition schema and record used ClickHouse source column
names, which can differ from the spec's own field names. Read the names
from the persisted spec and drop the `partition_columns` parameter.

Addresses #109286 (comment)

Co-Authored-By: Claude Fable 5 <[email protected]>
Diskein added a commit that referenced this pull request Jul 3, 2026
icebergBucket returns UInt32, so its result reaches writePartitionRecord
as Field::UInt64 while the manifest partition field is Avro int.

#109286 (comment)

Co-Authored-By: Claude Fable 5 <[email protected]>
@Diskein
Diskein marked this pull request as ready for review July 3, 2026 15:48
Diskein added a commit that referenced this pull request Jul 6, 2026
icebergBucket returns UInt32, so its result reaches writePartitionRecord
as Field::UInt64 while the manifest partition field is Avro int.

#109286 (comment)

Co-Authored-By: Claude Fable 5 <[email protected]>
@Diskein
Diskein force-pushed the dk-iceberg-partition-value-encoding branch from b60a515 to 5730614 Compare July 6, 2026 16:10
@alexey-milovidov

Copy link
Copy Markdown
Member

Updating the branch to fix the 04001_join_reorder_through_expression test, which was broken today in master.

alexey-milovidov added a commit that referenced this pull request Jul 14, 2026
The manifest `data_file.partition` Avro record and its schema were named
from the source column names (`ChunkPartitioner::getColumns`), but Iceberg
requires them to be the partition spec's field names. These differ from the
source column names for transforms (e.g. `id` -> `id_bucket`) and after a
`RENAME COLUMN`, so a manifest written for such a table did not match the
table's own partition spec, even though this PR already writes the correct
field-ids.

Take the partition field names from the persisted spec
(`partition_spec->getArray("fields")[i]->getValue<String>("name")`) in both
`extendSchemaForPartitions` and `writePartitionRecord`, mirroring what
`Compaction.cpp` already did. `generateManifestFile` no longer needs the
source column names, so its `partition_columns` parameter is dropped.

This is a no-op for ClickHouse-created tables (there the spec field name
equals the source column name), and does not affect ClickHouse's own reads,
which parse the `partition` record positionally and ignore the field names.

Addresses the review finding on
#109286.
@alexey-milovidov

Copy link
Copy Markdown
Member

Automated maintenance update:

  • Updated the branch to current master (it was ~3k commits / >1 week behind); the merge was clean.
  • Addressed the outstanding AI-review Major (manifest partition field names). extendSchemaForPartitions and writePartitionRecord were naming the manifest data_file.partition record from the source column names (ChunkPartitioner::getColumns); they now take the field names (and ids) from the persisted partition spec, mirroring what Compaction.cpp already did. This matters for tables whose spec field name differs from the current source column name (externally-created transform fields, or after a RENAME COLUMN). It is a no-op for ClickHouse-created tables (there the spec field name equals the source column name) and does not affect ClickHouse's own reads, which parse the partition record positionally. generateManifestFile's now-unused partition_columns parameter was dropped. Verified locally: the affected TUs build under -Weverything -Werror, all three cases of 04498_iceberg_insert_partition_value_encoding round-trip correctly, and the written manifest's partition struct carries the spec field name.
  • The remaining AI-review items (UUID partition encoding, and preserving original specs during compaction of spec-evolved tables) are pre-existing behaviors independent of this change and were already scoped out on the review threads; they are left for a separate follow-up / design decision.
  • The only red CI check was the AST fuzzer Inconsistent AST formatting failure (issue #109501), a known pre-existing formatter round-trip bug unrelated to this PR; CI re-runs on the freshly merged base.

Diskein and others added 10 commits July 16, 2026 14:22
`writePartitionRecord` chose the Avro datum from the `Field` tag, but
ClickHouse stores `UInt8/16/32` (and `Date`) as `Field::UInt64`, so a
partial DROP PARTITION rewrite emitted an Avro `long` for a partition
field declared `int`, corrupting the survivor manifest. Derive the datum
from the partition column type (mirroring `getAvroType`), narrowing to
`int` with a range check that throws on overflow.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
writePartitionRecord read the partition value with safeGet<Int64> on a
Decimal64 Field (e.g. a DateTime64 partition value), throwing
"Bad get: has Decimal64, requested Int64". Unwrap the decimal instead.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The manifest partition struct hardcoded field-ids 1000+i, but the
partition spec numbers them differently per writer (1001+i for
ClickHouse-created tables, 1000+i for Spark-created). Iceberg projects
partition values by field-id, so the mismatch made a reader cast a long
onto an int field (Spark ClassCastException). Derive the ids from the
persisted spec.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
A `UInt64` partition value above `Int64::max` was cast to `Int64` and written as
a negative Avro `long`, silently corrupting the survivor manifest during a partial
`DROP PARTITION` rewrite. Throw `BAD_ARGUMENTS` for values that cannot be
represented by Iceberg's signed `long` instead of wrapping.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
`writePartitionRecord` had `Decimal32`/`Decimal64` branches, but `getAvroType`
has no `Decimal*` case, so the manifest schema extension rejected decimal
partition columns up front anyway. Remove the dead branches so decimal partitions
fail consistently and early rather than appearing partially supported.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Covers UInt32 (Avro int) and DateTime64 (Decimal64 ticks to Avro long)
identity partitioning, and rejection of UInt64 partition values that do
not fit into Iceberg's signed long.

Co-Authored-By: Claude Fable 5 <[email protected]>
The caller passes DataTypes, whose allocator differs from
std::vector<DataTypePtr>.

Co-Authored-By: Claude Fable 5 <[email protected]>
Equality predicates on a DateTime64 identity partition prune wrongly on
master (the manifest value is parsed as Int64 while the pruning path
requests Decimal64), and an INSERT of a UInt64 value above the signed
long range wraps in the data-path cast before partitioning, so neither
belongs to this change.

Co-Authored-By: Claude Fable 5 <[email protected]>
icebergBucket returns UInt32, so its result reaches writePartitionRecord
as Field::UInt64 while the manifest partition field is Avro int.

#109286 (comment)

Co-Authored-By: Claude Fable 5 <[email protected]>
@Diskein
Diskein force-pushed the dk-iceberg-partition-value-encoding branch from 9c073e2 to 466add4 Compare July 16, 2026 14:34
@clickhouse-gh clickhouse-gh Bot added pr-bugfix Pull request with bugfix, not backported by default and removed pr-improvement Pull request with some product improvements labels Jul 16, 2026
@Diskein

Diskein commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

#109286 (comment) - the commit about not using columns was fine but breaks sync, i've tried to do it too but gave up for now for this PR.

@alexey-milovidov

Copy link
Copy Markdown
Member

Automated maintenance update:

  • Merged current master (the branch was ~3.7k commits / a week behind); the merge was clean, the full binary builds, and all three cases of 04498_iceberg_insert_partition_value_encoding round-trip correctly on the merged head.
  • Investigated the requested overflow-rejection test (inserting 4294967295 into a PARTITION BY (a) table with a UInt32): the INSERT does not fail — the block is cast to the Iceberg physical schema (UInt32 → int) upstream of the manifest writer, so the value wraps to -1 before convertToAvro ever sees it. The overflow branch is a defensive guard, unreachable from SQL INSERT today. Details on the review thread; no test added since it would only assert the pre-existing upstream wrapping, which is a separate issue.
  • Updated the PR description to match the current head: since the spec-field-name commit was dropped (it breaks the CH Inc sync, per the author above), the description no longer claims manifest partition field names come from the partition spec — only the field ids do. The names-from-spec change can be a follow-up once it can be done sync-friendly. Marked the overflow rejection as a defensive guard.
  • The previous red was only the new_tests_check.py bugfix-validation gate, whose per-arch validation jobs were all SKIPPED in that run; the test does fail on pre-fix code (any UInt32-partitioned INSERT failed), so this looks like an infra flake — CI re-runs on the freshly merged base.

@clickhouse-gh

clickhouse-gh Bot commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Commit 2491794d9d9d9de258983ffcd4c5cf486efe2e3c was not compared: the CI logs cluster did not answer (every POST attempt failed with an exception).

See the job log for details.

Use persisted partition-spec field names for both manifest schemas and records.

#109286
`getAvroType` threw for every `DateTime64` scale other than 6, but
`IcebergSchemaProcessor` maps Iceberg `timestamp_ns` back to
`DateTime64(9)`. Metadata-derived rewrite paths (compaction, mutations)
reconstruct partition types through that mapping, so a `timestamp_ns`
partition field reached this helper and was rejected. Accept scale 9 and
emit the matching `timestamp-nanos` Avro logical type.

Addresses the review finding about incomplete `DateTime64` scale
handling in the manifest schema path.
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Automated maintenance update:

  • Merged current master (the branch was ~10 days behind); the merge was clean, ninja clickhouse builds, and all cases of 04498_iceberg_insert_partition_value_encoding plus 04501_iceberg_datetime64_partition_pruning round-trip correctly on the merged head.
  • Addressed the new AI-review Major on DateTime64 scale handling. The stated failure mode (create a PARTITION BY DateTime64(3) table, then have every INSERT fail) does not reproduce: the Iceberg schema coerces every DateTime64 to timestamp, so the partition type reaching the manifest writer is always DateTime64(6) - existing behavior pinned by 04501_iceberg_datetime64_partition_pruning and 04652_iceberg_mv_target_stale_schema_write. The adjacent real gap is fixed instead: getAvroType rejected every scale other than 6, while IcebergSchemaProcessor maps Iceberg timestamp_ns to DateTime64(9), so a timestamp_ns-partitioned table reconstructed on a rewrite path (compaction, mutations) was rejected. It now accepts scale 9 and emits the timestamp-nanos logical type. Details on the review thread.
  • Fixed the CH Inc sync failure. The sync PR could not take the public changes automatically. The public branch is now merged into the sync branch manually: the only conflicts were in this PR's own files, resolved in favour of the private-side hardening (bounds-checked partition_values.at(i) and the null-partition_spec guard) while taking the public test files verbatim. The resulting sync delta against private master is exactly this PR's four files.
  • The remaining AI-review findings are unchanged and out of scope here: UUID partition encoding (dismissed by the author) and Iceberg time on rewrite paths (needs an explicit representation decision - Iceberg time is deliberately Int64 today while DataTypeTime is Int32).

@clickhouse-gh

clickhouse-gh Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

📊 Cloud Performance Report

✅ AI verdict: no_change — no significant changes across 37 queries analysed

Release-transition baseline: compared against the most recent available 26.9 masters at or before the trusted base-commit anchor because no 26.10 master baseline exists there.

no significant changes detected. K_source=6 K_base=30 flagged=0/65

clickbench

🟢 No significant changes

tpch_adapted_1_official

🟢 No significant changes

Debug info
  • StressHouse run: 10ffcf02-8fbf-4435-a14d-5dadddc66000
  • MIRAI run: a58a8f07-ab49-4c0a-b6c7-b509c0e882b2
  • PR check IDs:
    • clickbench_1639962_1790247423
    • clickbench_1639968_1790247423
    • clickbench_1639974_1790247423
    • tpch_adapted_1_official_1639981_1790247423
    • tpch_adapted_1_official_1639996_1790247423
    • tpch_adapted_1_official_1640035_1790247423

…n-value-encoding

Conflicts in `IcebergWrites.cpp`: keep the PR's `writePartitionRecord`/`convertToAvro`
(spec field names, type-derived Avro datums) and adopt master's Decimal partition support
(`getAvroType(type, field_id)` and the Avro `fixed` datum via `makeDecimalFixedDatum`).
The vendored Avro C++ library has no `timestamp-nanos` logical type, so
`AvroSchemaReader::avroNodeToDataType` reads such a manifest partition value
back as a raw `Int64`. Manifest compaction then carries that value into the
partition summaries, where `dumpFieldToBytes` expects a `Decimal64` for a
`DateTime64` field. Writing `timestamp-nanos` therefore only moved the failure
of a `timestamp_ns`-partitioned table from the manifest writer to the summary
rewrite. Keep rejecting scales other than 6 until a readback path exists.

Addresses the review finding on the `timestamp_ns` rewrite-path claim.
… test

The ClickHouse manifest reader parses `data_file.partition` positionally, so
the round-trip alone could not detect a manifest whose partition record used
source column names or the `1000 + i` default field ids. Inspect the written
manifest directly: the Avro schema must carry the spec `field-id` (1001 for
the first spec field) and the record field must be the spec field name.

Addresses the review request for a focused regression on the field-name/id fix.
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Automated maintenance update (2026-09-04):

  • Merged current master (the branch was 9 days behind and red). Conflicts in IcebergWrites.cpp against the merged Decimal partition support were resolved by keeping this PR's writePartitionRecord/convertToAvro structure and adopting master's getAvroType(type, field_id) and the Avro fixed datum via makeDecimalFixedDatum. Verified locally with clickhouse local (IcebergLocal): UInt32, DateTime64(6), DateTime64(3), Float32, icebergBucket, Decimal(10,2), Nullable(Int32) and Nullable(Decimal(20,3)) partitions all insert, read back and prune correctly.
  • AI review Blocker (timestamp_ns): scoped back in a203518. getAvroType rejects scales other than 6 again, because the vendored Avro library has no timestamp-nanos logical type, so a manifest written that way is read back as raw Int64 and breaks the partition-summary rewrite. PR body and changelog entry updated accordingly.
  • AI review test request: bd88252 makes 04498_iceberg_insert_partition_value_encoding inspect the written manifest directly: the Avro schema must carry the spec field-id (1001, where the old 1000 + i default would give 1000) and the partition record field must be the spec field name.
  • The only red on the previous head, Docker server image (clickhouse/clickhouse-server:head-arm64), was an Ubuntu apt mirror 503 Service Unavailable during docker buildx, unrelated to this PR.

@clickhouse-gh clickhouse-gh Bot added the comp-datalake Data lake table formats (Iceberg/Delta/Hudi) integration. label Sep 4, 2026
alexey-milovidov and others added 2 commits September 10, 2026 16:27
Iceberg `time` is a 64-bit value in the specification, so the manifest
`data_file.partition` field for a `time` partition must be an Avro `long`.
`getAvroType` mapped `Time` to `int`, and `convertToAvro` followed it.

That mapping is also inconsistent with the manifest rewrite paths (compaction,
mutations): they rebuild the partition types from the persisted metadata, where
`IcebergSchemaProcessor` maps Iceberg `time` to `Int64` and therefore emits an
Avro `long`. The same happens for a directly declared `Time` partition column,
because the table schema is re-derived from the persisted Iceberg schema, so
the `int` branch was in practice unreachable - a latent trap rather than an
observable break. Both paths now agree with each other and with the spec.

No `time-micros` logical type is attached: ClickHouse `Time` values are whole
seconds, and rescaling them to microseconds here would desynchronize the
manifest partition value from the value stored in the data file. The unit
question is a separate representation decision.

The test covers an `INSERT` and an `OPTIMIZE` manifest rewrite of a
`time`-partitioned table, and checks the written manifest Avro type.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Status update (pass of 2026-09-10, head 96bacffa):

  • Merged master (branch was 4016 commits / 6 days behind), no conflicts.
  • AI Review Blocker (Iceberg time on manifest rewrite paths): addressed in 96bacffa, in the opposite direction from the suggestion. Iceberg time is a 64-bit value in the specification, so the Avro long the rewrite paths emit is correct and the int that getAvroType advertised was the incorrect side. getAvroType now maps Time to long and convertToAvro moves TypeIndex::Time into the 64-bit group, so INSERT, compaction and mutation rewrites all agree with the persisted spec. It was also unobservable before: the table schema is re-derived from the persisted Iceberg schema, so a declared Time partition column comes back as Int64 and TypeIndex::Time never reached either function. No time-micros logical type is attached, because ClickHouse Time values are whole seconds and rescaling them only in the manifest would desynchronize the partition value from the data file. Details on the review thread.
  • Regression test added to 04498_iceberg_insert_partition_value_encoding: time-partitioned table, INSERT, OPTIMIZE manifest rewrite, partition-pruned read, and an assertion on the written manifest Avro type. Passes locally, along with the rest of 04498, 04501_iceberg_datetime64_partition_pruning and 04652_iceberg_mv_target_stale_schema_write.
  • CH Inc sync fixed: the private sync PR was CONFLICTING against a stale head. Rebuilt it (private master first, then this branch) and pushed; it is MERGEABLE again, and its diff is exactly this PR's four files.
  • Style check clean locally.
  • The remaining unresolved thread on the Iceberg time representation (Int64 vs DataTypeTime, and the seconds-vs-microseconds unit) is unchanged: that is still a maintainer decision and is not required by this fix.

Blockers: fresh CI on the merged head, an AI re-verdict, and human review/merge.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Status update (pass of 2026-09-18, head b4aa6fba):

  • Merged master (the branch was 3949 commits / 8 days behind), no conflicts. The diff against master is still exactly the 4 PR files.
  • Both reds on 96bacffa were unrelated and are already fixed on master, so the merge pulls the fixes in:
    • 05141_time_series_select_join_settings (grace_hash needs a spill threshold, BAD_ARGUMENTS) was cleared by the revert of Unify the spill trigger for hash joins #117356 on 2026-09-10.
    • test_storage_iceberg_with_spark/test_partition_pruning_with_functions.py::test_partition_pruning_with_functions_before_epoch (KeyCondition::checkInRange assertion in ManifestListPruner::canBePruned on a Spark-written pre-1970 partition summary, a read-path issue) was fixed by 039006e41a43 ("Read a pre-1970 Iceberg partition summary bound as the signed number it is") on 2026-09-11. This PR only changes the manifest write path.
  • Rebuilt clickhouse on the merged head; 04498_iceberg_insert_partition_value_encoding, 04501_iceberg_datetime64_partition_pruning and 04652_iceberg_mv_target_stale_schema_write pass locally.
  • No unresolved review threads. The three items in the AI review verdict are all marked as dismissed by the author on their linked threads (pre-existing compaction spec handling, pre-existing UUID partition support, and the persisted-spec-name test, which cannot diverge from the source name for any ClickHouse-created table).

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Status update (pass of 2026-09-24, head 2491794d9d9d):

  • Merged master (the branch was 3865 commits / 6 days behind), no conflicts. The diff against master is still exactly the 4 PR files. Full clickhouse build OK; 04498_iceberg_insert_partition_value_encoding, 04501_iceberg_datetime64_partition_pruning and 04652_iceberg_mv_target_stale_schema_write pass locally.
  • CH Inc sync ("needs manual intervention"): the automatic sync into the private PR conflicted on files outside this PR's scope (StackTrace, SignalHandlers, StorageTimeSeriesSelector, docs). Resolved by hand: those files are kept at private master, and the private PR now differs from private master only in the 4 PR files. It is MERGEABLE again.
  • The reds on b4aa6fba do not touch Iceberg:
    • Stress test (arm_asan_ubsan): GroupingAggregatedTransform pushed bucket 1 twice is the known open issue [CI crash] GroupingAggregatedTransform pushData failure #115986.
    • Stateless (amd_llvm_coverage, ParallelReplicas, s3 storage): 01414_push_predicate_when_contains_with_clause, 03262_filter_push_down_view, 03174_exact_rows_before_aggregation are filter-push-down / parallel-replicas tests, not related to Iceberg writes.
    • Performance Comparison (arm_release, 5/6): errors in the perf harness. This PR only changes the Iceberg manifest writer, which no perf test covers.

@groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=109286&sha=b4aa6fba9c0cfbf814fd4b2f41974b5df270d015&name_0=PR&name_1=Stateless%20tests%20%28amd_llvm_coverage%2C%20ParallelReplicas%2C%20s3%20storage%2C%20parallel%29 and provide a fix in a separate PR. If the fix is already in progress, link it here.

@groeneai

Copy link
Copy Markdown
Collaborator

Investigated. Those three reds are not from this PR. They are the tests/parallel_replicas_blacklist.txt entries that #120477 removed on 2026-09-17 and your revert #120763 restored on 2026-09-18 09:15:34Z.

That file is an expected-to-fail list, not a skip list: a listed test that passes is itself reported as a failure (tests/clickhouse-test:1671), and the list is loaded only when --no-parallel-replicas is passed (tests/clickhouse-test:6790), which is exactly what this job option does (ci/jobs/functional_tests.py:220). With the entries deleted, the lane executed all three and they failed deterministically, as pre-existing parallel-replicas divergences rather than a new regression.

Fix-presence checks:

  • b4aa6fba: none of the three are in the blacklist at that head, and its merge base with your revert merge 930ccf28 is 83a6d57e (2026-09-18 02:03:56Z), so the head predates the restore.
  • 2491794d: 930ccf28 is an ancestor (behind_by: 0) and all three entries are back, at lines 31, 106 and 129. The master merge in this pass already picks the fix up.
  • On b4aa6fba the same three tests are OK in every other stateless lane (amd_debug, arm_binary, Fast test), so the failure was confined to the one lane that loads the list.
  • True master since the revert merged: 0 FAIL or ERROR rows for the three across 319 shas, with 10447 OK and 939 SKIPPED, and every SKIPPED row in that single lane.

So the fixing PR is #120763, already merged and already an ancestor of the current head, and there is no new PR from me here. The coverage lane has not re-run on 2491794d yet; it should skip all three.

@clickhouse-gh clickhouse-gh Bot added comp-iceberg Apache Iceberg tables: reading and writing Iceberg metadata (snapshots, manifests, schema evoluti... and removed comp-datalake Data lake table formats (Iceberg/Delta/Hudi) integration. labels Nov 19, 2026

This branch has not been deployed

No deployments
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-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants