Nandor Kollar has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/25046


Change subject: IMPALA-15495: Enable UPDATE on Iceberg REST catalog tables
......................................................................

IMPALA-15495: Enable UPDATE on Iceberg REST catalog tables

The REST finalization infrastructure (IMPALA-15310) was built to be
operation-agnostic, but UPDATE was gated by two explicit policy checks.
This patch opens those gates while keeping DELETE, MERGE, OPTIMIZE and
INSERT OVERWRITE blocked.

Analysis-time gate: ensureNonInsertDmlSupported() is renamed to
ensureDmlSupportedByProvider() and moved out of ModifyStmt (which
covers both UPDATE and DELETE) into DeleteStmt, MergeStmt and
OptimizeStmt individually so that UpdateStmt is never blocked.

Commit-time gate: IcebergDmlFinalizer.validateRestDmlOperation() now
allows TIcebergOperation.UPDATE in addition to INSERT.

No backend changes are needed: the C++ sinks are catalog-agnostic,
the coordinator-side finalization routing is based on rest_catalog_name
(not operation type), and IcebergCatalogOpExecutor.updateRows() already
uses the pure Iceberg API (txn.newRowDelta()).

Testing:
- AnalyzerCapabilityTest updated for renamed method and new messages.
- test_rest_catalog_insert_into extended: UPDATE removed from the
  unsupported list, positive UPDATE + SELECT verification added.

Change-Id: I847f051e9a350b730935326c983c7459215c54e2
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/analysis/MergeStmt.java
M fe/src/main/java/org/apache/impala/analysis/ModifyStmt.java
M fe/src/main/java/org/apache/impala/analysis/OptimizeStmt.java
M fe/src/main/java/org/apache/impala/service/IcebergDmlFinalizer.java
M fe/src/test/java/org/apache/impala/analysis/AnalyzerCapabilityTest.java
M tests/custom_cluster/test_iceberg_rest_catalog.py
8 files changed, 43 insertions(+), 19 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/46/25046/1
--
To view, visit http://gerrit.cloudera.org:8080/25046
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I847f051e9a350b730935326c983c7459215c54e2
Gerrit-Change-Number: 25046
Gerrit-PatchSet: 1
Gerrit-Owner: Nandor Kollar <[email protected]>

Reply via email to