Skip to content

Antalya 26.8 Backport of #124598 - Fix NULL _row_id for EXISTING data files of Iceberg tables upgraded to v3 - #2675

Merged
zvonand merged 2 commits into
antalya-26.8from
backports/antalya-26.8/124598
Oct 25, 2026
Merged

zvonand merged 2 commits into
antalya-26.8from
backports/antalya-26.8/124598

Conversation

@zvonand

@zvonand zvonand commented Oct 25, 2026

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

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

Fix _row_id and _last_updated_sequence_number returning NULL for rows of Iceberg data files written before the table was upgraded to format version 3: manifest entries with status EXISTING now inherit first_row_id from the manifest, as the Iceberg spec requires. (ClickHouse#124598 by @groeneai)

Documentation entry for user-facing changes

...

CI/CD Options

Exclude tests:

  • Fast test
  • Integration Tests
  • Stateless tests
  • Stateful tests
  • Unit tests
  • Performance tests
  • Aarch64 tests
  • All with ASAN
  • All with TSAN
  • All with MSAN
  • All with UBSAN
  • All with Coverage
  • All Regression
  • Disable CI Cache

Regression jobs to run:

  • Fast suites (mostly <1h)
  • Aggregate Functions (2h)
  • Alter (1.5h)
  • Benchmark (30m)
  • CAS (content-addressed storage; Antalya only)
  • ClickHouse Keeper (1h)
  • Iceberg (2h)
  • LDAP (1h)
  • OAuth (5m)
  • Parquet (1.5h)
  • RBAC (1.5h)
  • SSL Server (1h)
  • S3 (2h)
  • S3 Export (2h)
  • Swarms (30m)
  • Tiered Storage (2h)

…3-inherit-first-row-id-existing

Fix NULL `_row_id` for EXISTING data files of Iceberg tables upgraded to v3
@github-actions

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Workflow [PR], commit [870d040]

@zvonand

zvonand commented Oct 25, 2026

Copy link
Copy Markdown
Member Author

@blau-ai

@blau-ai

blau-ai commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator

CI triage for #2675

Verdict: 5 red checks — 0 caused by this PR. All failures are pre-existing/infra or a known process gate that fails on every backport to antalya-26.8. The PR's own change and its new test are clean. In short: this backport looks healthy; the red is environmental.

My control: sibling backport #2676 (backports/antalya-26.8/124591, which does not touch Iceberg at all) shows the identical failure fingerprint — same 21/1287 in Integration 5/8, same oauth and swarms regression failures, same DCO fail.

Per-check breakdown

1. Integration tests (amd_asan_ubsan, db disk, old analyzer, 5/8) — Failures 21/1287 → NOT PR-caused
All 21 failures are in test_storage_iceberg_with_spark/test_export_partition_iceberg.py (a different feature — partition export). None are in test_row_lineage.py, the file this PR touches, and the PR's new test test_row_id_inherited_by_existing_files_after_upgrade_to_v3 is not among them. Every failure is the same setup/permissions error, unrelated to row-id logic:

Code: 497. DB::Exception: default: Not enough privileges. To execute this query,
it's necessary to have the grant SHOW NAMED COLLECTIONS SECRETS ON s3. (ACCESS_DENIED)
(query: CREATE TABLE ... ENGINE=IcebergS3(s3, ...))

Evidence: PR #2676 has the exact same 21 test_export_partition_iceberg.py failures (compared the full failing-test sets — identical). This is a pre-existing grant/test-setup problem on the base branch, not a regression from this change. Next step: a re-run won't help; it's a base-branch test-config issue (the default user needs SHOW NAMED COLLECTIONS SECRETS for the s3 named collection). Worth tracking/fixing separately from this PR.

2. Regression release oauth and Regression release swarms → NOT PR-caused
Altinity regression suites for OAuth auth and swarm clusters — no code path in common with an Iceberg manifest change. Both fail identically on #2676. Pre-existing/infra. Next step: safe to ignore for this PR.

3. DCO → NOT PR-caused (process gate, fails on all backports)
The only commit on top of base is the upstream merge commit a16ae850 ("Merge pull request ClickHouse#124598 …", authored by Alexey Milovidov), which carries no Signed-off-by trailer. DCO fails the same way on #2674, #2676 and #2681 — i.e. on every backport merge here, so it's an expected gate for this workflow, not something specific to this change. Next step: if DCO must be green, a maintainer can add the sign-off / apply the DCO override; otherwise it's the usual backport noise.

4. PR → aggregate rollup
Red only because the children above are red; carries no independent error.

Change health

The C++ diff in ManifestFileIterator.cpp is a faithful backport of upstream ClickHouse#124598: the skip condition changes from status != ADDED to status == DELETED, so a live data file with a null first_row_id now inherits one whether it is ADDED or EXISTING, while DELETED entries still take no ids — matching the Iceberg v3 row-lineage rule that writers reserve ids for added + existing rows only. The added integration test covers exactly the upgrade-to-v3 scenario (EXISTING files getting inherited row-ids) and is not in any failure list. Nothing here warrants a code change.

🤖 Triage by @blau-ai. Evidence: praktika result_pr.json for #2675 and #2676.

@zvonand
zvonand merged commit ff99644 into antalya-26.8 Oct 25, 2026
78 of 79 checks passed
@zvonand zvonand added the verified Approved for release label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants