Repository navigation
Antalya 26.8: auto-grp-pr-2308: combined port of 2 PRs - #2658
Conversation
…next commit) --- Original cherry-pick message follows: Merge pull request #2308 from Altinity/backports/antalya-26.6/115603 Antalya 26.6 - Backport of ClickHouse#115603 - read row_lineage(iceberg v3) fields as virtual columns # Conflicts: # src/Core/ProtocolDefines.h # src/Storages/ObjectStorage/DataLakes/Iceberg/IcebergDataObjectInfo.cpp # src/Storages/ObjectStorage/DataLakes/Iceberg/IcebergDataObjectInfo.h # src/Storages/ObjectStorage/DataLakes/Iceberg/IcebergIterator.cpp # src/Storages/ObjectStorage/DataLakes/Iceberg/ManifestFilesPruning.cpp # src/Storages/ObjectStorage/DataLakes/Iceberg/ManifestFilesPruning.h # src/Storages/ObjectStorage/DataLakes/Iceberg/StatelessMetadataFileGetter.cpp # src/Storages/ObjectStorage/StorageObjectStorageSource.cpp
Keep antalya-26.8 cluster protocol versions (absolute path moved to the Antalya protocol, version 9 is identity partition columns) and add CDC_READING = 10 on top. Pass first_row_id in the antalya-26.8 IcebergIterator::createManifestIterator (the old SingleThreadIcebergKeysIterator::next code was replaced). ManifestFilesPruner on antalya-26.8 caches column types in min_max_column_types instead of re-reading the schema in canBePruned; row-lineage columns take their type from row_lineage_columns there. Source-PR: #2308 (#2308)
…next commit) --- Original cherry-pick message follows: Merge pull request #2456 from Altinity/backport-116171-iceberg-v3-cdc-writes Antalya 26.6: Backport of ClickHouse#116171 to write iceberg v3 next_seq_num and first_row_id # Conflicts: # src/Storages/ObjectStorage/DataLakes/Iceberg/Compaction.cpp # src/Storages/ObjectStorage/DataLakes/Iceberg/IcebergMetadata.cpp # src/Storages/ObjectStorage/DataLakes/Iceberg/IcebergWrites.cpp # src/Storages/ObjectStorage/DataLakes/Iceberg/IcebergWrites.h # src/Storages/ObjectStorage/DataLakes/Iceberg/Mutations.cpp # tests/integration/test_storage_iceberg_with_spark/test_optimize.py
`generateManifestList` on antalya-26.8 gained a trailing `previous_manifest_actions`
parameter (used by `AlterDropPartitionExecutor`), so `entry_row_counts` is appended
after it and the PR's call sites pass `/* previous_manifest_actions */ {}`.
`ManifestListEntryCounts` and the compaction per-manifest counts are already on
antalya-26.8 in a more evolved form (with lineage), so the base side is kept there.
The new-entries loop is moved after the parent-entries copy as in the PR, keeping
antalya-26.8's loop body and applying only the PR's `entry_row_counts` and
`first_row_id` changes.
In `Mutations.cpp`, antalya-26.8 iterates `data_file` per partition, so
`delete_filename.total_rows` becomes `data_file.total_rows`.
Adapted: entry_row_counts appended after previous_manifest_actions in generateManifestList
Adapted: Mutations.cpp row counts taken from data_file.total_rows
Source-PR: #2456 (#2456)
CI triageVerdict: 4 distinct failures, 0 PR-caused. All are infra / timeout / randomized-settings flakiness in areas this PR does not touch (the PR is entirely Iceberg:
1. AST fuzzer (amd_debug, targeted, old_compatibility) — ERROR → infraPraktika produced no result (
The runner died mid-job. Not a fuzzer crash (a real crash produces a FAIL with a stack). Next step: re-run the job. 2. SQLLogic test — ERROR → timeout
The job was SIGTERM-killed at the 3h budget. Timeline: statements-test ran 21:25→22:48 (~1h22m), complete-test started 22:48 and was still running when the budget expired at 00:24. This is the upstream sqllogictest suite (SQLite comparison) — unrelated to Iceberg; it is simply slow on this runner. Next step: re-run; if it recurs, the suite's time budget / parallelism needs raising (not a PR issue). 3. Stateless (amd_debug, distributed plan, s3 storage, parallel) — FAIL → randomized-settings flakeOne test: The diff is a file-count assertion: The test asserts an exact Parquet file count after a MergeTree→S3 (hive-partitioned Parquet) export; randomized MergeTree part-sizing settings ( 4. Regression release swarms + aarch64 swarms — FAIL → flaky/infraIdentical 3 scenarios failed on both architectures: These are distributed-swarm resilience tests — cluster discovery and CPU-overload fault injection. They have no connection to Iceberg code paths. The CPU-overload tests inject host CPU stress and are notoriously environment/resource-sensitive on shared self-hosted runners. Next step: re-run the swarms regression; these aren't affected by this PR's changes. Bottom lineCI is red only on infra (runner loss, timeout) and pre-existing test flakiness (randomized MergeTree settings, environment-sensitive swarm tests) — all outside the Iceberg code this PR modifies. I'd re-run all four. The Iceberg-relevant suites that did run are green: 🤖 Generated with Claude Code |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Add support for Iceberg v3 row lineage metadata: write the
first_row_idandnext_seq_numfields when writing Iceberg tables, and exposefirst_row_idandlast_seq_numfrom manifest files as virtual columns insystem.iceberg_files.Add support for Iceberg v3 row lineage metadata: write the
first_row_idandnext_seq_numfields when writing Iceberg tables, and exposefirst_row_idandlast_seq_numfrom manifest files as virtual columns insystem.iceberg_files(#2308 by @subkanthi, #2456 by @subkanthi).CI/CD Options
Exclude tests:
Regression jobs to run:
Combined port of 2 PR(s) (group
auto-grp-pr-2308). Cherry-picked from #2308, #2456.