Nandor Kollar has uploaded this change for review. ( http://gerrit.cloudera.org:8080/25105
Change subject: IMPALA-15492: Enable DELETE on Iceberg REST catalog tables ...................................................................... IMPALA-15492: Enable DELETE on Iceberg REST catalog tables Opens the two policy gates that blocked DELETE on REST-backed Iceberg tables, matching the approach taken for UPDATE in IMPALA-15495. Analysis-time gate: the ensureDmlSupportedByProvider() call is removed from DeleteStmt entirely — UpdateStmt and DeleteStmt now both bypass the gate, while MergeStmt and OptimizeStmt still hit it. Commit-time gate: IcebergDmlFinalizer.validateRestDmlOperation() is refactored to use an EnumSet (SUPPORTED_REST_OPS) instead of a growing chain of != checks. Adding a new operation means adding one entry to the set. No backend changes: IcebergCatalogOpExecutor.deleteRows() already uses the pure Iceberg API (txn.newRowDelta()), and the C++ DELETE case in CreateIcebergCatalogOps() already collects delete artifacts. Testing: - IcebergRestDmlOperationTest extended: validates INSERT, UPDATE, DELETE pass; INSERT OVERWRITE, MERGE, OPTIMIZE are rejected. - AnalyzerCapabilityTest updated for new error messages. - test_rest_catalog_insert_into extended with DELETE tests: happy path, no-op, CommitStateUnknownException, CommitFailedException. Also adds matching UPDATE error-handling tests. Change-Id: Ifa8818e5c8a671c43f51d45ca527266036c094f0 Assisted-by: Claude Opus 4.6 (Claude Code) Co-Authored-By: Claude Opus 4.6 <[email protected]> --- M fe/src/main/java/org/apache/impala/analysis/Analyzer.java M fe/src/main/java/org/apache/impala/analysis/DeleteStmt.java M fe/src/main/java/org/apache/impala/service/IcebergDmlFinalizer.java M fe/src/test/java/org/apache/impala/analysis/AnalyzerCapabilityTest.java M fe/src/test/java/org/apache/impala/service/IcebergRestDmlOperationTest.java 5 files changed, 33 insertions(+), 20 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/05/25105/1 -- To view, visit http://gerrit.cloudera.org:8080/25105 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: Ifa8818e5c8a671c43f51d45ca527266036c094f0 Gerrit-Change-Number: 25105 Gerrit-PatchSet: 1 Gerrit-Owner: Nandor Kollar <[email protected]>
