Antalya 26.8: Implement TRUNCATE TABLE for Iceberg Engine (REST … - #2374
Conversation
…next commit) --- Original cherry-pick message follows: Merge pull request #2125 from Altinity/feature/antalya-26.6/pr-1655 Antalya 26.6: Implement TRUNCATE TABLE for Iceberg Engine (REST … # Conflicts: # src/Storages/ObjectStorage/DataLakes/Iceberg/IcebergMetadata.cpp # src/Storages/ObjectStorage/DataLakes/Iceberg/MetadataGenerator.cpp # src/Storages/ObjectStorage/DataLakes/Iceberg/MetadataGenerator.h
Kept antalya-26.8's `SnapshotOperation` parameter, `setSnapshotTotals` helper and `generateManifestOnlySnapshot`, and layered the PR's `is_truncate` handling on top of them. Adapted: `generateNextMetadata` gained `bool is_truncate` after antalya-26.8's `SnapshotOperation operation` parameter (existing callers pass `operation` positionally); the truncate call site passes `SnapshotOperation::Append` explicitly Adapted: the PR's truncate `overwrite` operation and zeroed `total-*` counters expressed in antalya-26.8's `operation_name` / `setSnapshotTotals` shape
# Conflicts: # src/Storages/ObjectStorage/DataLakes/Iceberg/IcebergMetadata.cpp
CI triage for 50d5a07Verdict: 3 failing checks — 0 caused by this PR. All are pre-existing/infra/flaky.
Everything else (builds, integration, stress, AST fuzzer, BuzzHouse, all Regression suites, etc.) is green. 1. Stateless tests —
|
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Frontport for Antalya 26.3
CI/CD Options
Exclude tests:
Regression jobs to run:
Cherry-picked from #2125.
Adaptation notes for antalya-26.3
The following API changes between antalya-26.1 and antalya-26.3 required adaptation:
RestCatalogconstructor signature updated to matchantalya-26.3calling convention inDataLakeConfiguration.hDatabaseDataLakeSettingmember names updatedCargo.lockrestored toantalya-26.3version (our changes do not touch any Rust code)All feature logic is identical to the merged antalya-26.1 implementation.