Repository navigation
Support Iceberg DROP PARTITION in REST catalogs - #122269
Conversation
|
Workflow [PR], commit [71ffd2d] Summary: ✅
AI ReviewSummaryThis PR extends PR Metadata
Final Verdict
LLVM Coverage ReportMeasured on commit 71ffd2d.
Changed lines: Changed C/C++ lines covered: 89/101 (88.12%) · Uncovered code |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units30 translation units recompiled, 324 s compile time in total, 30 of them have a recent master baseline. |
Pass the catalog and the `StorageID` into `AlterDropPartitionExecutor`: the snapshot state is read through the catalog, and the new metadata is committed with `updateMetadata`. A transactional catalog writes the metadata file itself, so the direct metadata write and the version hint are skipped for it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
7babfe8 to
1b817a4
Compare
|
📊 Cloud Performance Report ✅ AI verdict: 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
|
With parallel replicas usable for cluster engines, `DatabaseDataLake` serves catalog tables through `StorageObjectStorageCluster`. ClickHouse#119214 made that wrapper forward the catalog write and DDL entry points to the same configuration and catalog that `StorageObjectStorage` uses, but not `checkAlterPartitionIsPossible` / `alterPartition`. So `ALTER TABLE <catalog table> DROP PARTITION` (ClickHouse#122269) reached the `IStorage` defaults and failed with `Table engine IcebergS3 doesn't support partitioning (NOT_IMPLEMENTED)`. Forward both exactly as `StorageObjectStorage` does. Which partition commands and catalogs are allowed stays decided by the data lake metadata, so the result is the same as with parallel replicas off. Closes ClickHouse#124988 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Allow
ALTER TABLE ... DROP PARTITIONon Iceberg tables backed by Iceberg REST catalogs. Resolve the current metadata through the catalog and commit the new snapshot through its update API. Reject catalogs without metadata update support before writing files.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Support
ALTER TABLE ... DROP PARTITIONfor Iceberg tables backed by Iceberg REST catalogs.Workflow [PR]
Sync PR [sync-upstream/pr/122269]
Version info
26.10.1.1952-master(included in26.10and later)