Repository navigation
Conversation
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]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 1 finding) plus my own cold review (1 nit).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261015-211300 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-41:20261015-205000 |
|
Workflow [PR], commit [f5f2dcf] Summary: ✅
AI ReviewSummaryReviewed #126136 at Missing context / blind spots
Final VerdictStatus: ✅ Approve. |
|
cc @scanhex12 @Michicosun, could you review this and add the |
3527341
Backport #126136 to 26.10: Allow `DROP PARTITION` on `DataLakeCatalog` Iceberg tables with parallel replicas
…` Iceberg tables with parallel replicas
Closes: #124988
Related: #122269
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not required:
DROP PARTITIONon catalog tables (#122269) is not in any release yet.Description
With parallel replicas enabled for cluster engines (
enable_parallel_replicas,cluster_for_parallel_replicas,parallel_replicas_for_cluster_engines = 1),ALTER TABLE <DataLakeCatalog db>.<Iceberg table> DROP PARTITION ...fails withCode: 48 ... Table engine IcebergS3 doesn't support partitioning (NOT_IMPLEMENTED). The same statement without parallel replicas drops the partition.Root cause: in this mode
DatabaseDataLakereturns aStorageObjectStorageCluster. #119214 made it forward the write and DDL entry points (write,mutate,alter,drop, ...) to the same configuration and catalog thatStorageObjectStorageuses, but notcheckAlterPartitionIsPossible/alterPartition, so theIStoragedefaults throw.Change: forward both exactly as
StorageObjectStoragedoes. The data lake metadata still decides which partition commands and catalogs are allowed, so partition commands behave the same with and without parallel replicas. I checked this locally forDETACH PARTITION,DROP PART,FREEZE PARTITIONandallow_insert_into_iceberg = 0, which give identical errors in both modes.Validation: the new integration test
test_drop_partition_catalog_parallel_replicasfails on master with the error above (4/4) and passes with the fix (50/50 over five random-settings draws). The otherdrop_partition,test_cluster_insert,test_cluster_selectandtest_insert*tests oftest_database_icebergpass.#126097 fixes
ALTER TABLE ... DELETE/UPDATEthrough the same wrapper; the two changes are independent.Workflow [PR]
Sync PR [sync-upstream/pr/126136]
Version info
26.11.1.79-master(included in26.11and later)