Hello Peter Rozsa, Daniel Vanko, Noemi Pap-Takacs, Impala Public Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/25046
to look at the new patch set (#2).
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,
CommitStateUnknownException and CommitFailedException tests for
UPDATE added.
- New iceberg-rest-update.test file adapted from
iceberg-v3-update.test exercising the full UPDATE path on REST
catalog with format-version 3 tables: basic, multi-row, single-
column, all-types (individual and multi-column updates), JOIN-based
UPDATE FROM, duplicate error, NULL handling, column swap,
cross-column expression, and SKIP_UNNEEDED_UPDATES_COL_LIMIT.
Tables are created via REST API since DDL is not available.
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
A testdata/workloads/functional-query/queries/QueryTest/iceberg-rest-update.test
M tests/custom_cluster/test_iceberg_rest_catalog.py
9 files changed, 528 insertions(+), 19 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/46/25046/2
--
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: newpatchset
Gerrit-Change-Id: I847f051e9a350b730935326c983c7459215c54e2
Gerrit-Change-Number: 25046
Gerrit-PatchSet: 2
Gerrit-Owner: Nandor Kollar <[email protected]>
Gerrit-Reviewer: Daniel Vanko <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Noemi Pap-Takacs <[email protected]>
Gerrit-Reviewer: Peter Rozsa <[email protected]>