Daniel Vanko has uploaded a new patch set (#4). ( http://gerrit.cloudera.org:8080/25143 )
Change subject: IMPALA-15497: Enable MERGE on Iceberg REST catalog tables ...................................................................... IMPALA-15497: Enable MERGE on Iceberg REST catalog tables MERGE on REST-backed Iceberg tables was blocked only by two policy gates. The rest of the MERGE path already supports REST tables: the backend builds the catalog ops from data files and delete artifacts, and IcebergCatalogOpExecutor commits MERGE through updateRows(), like UPDATE. - Analysis-time gate: MergeStmt.analyze() called Analyzer.checkTableCapability(WRITE), which rejects writes to REST tables. It now calls Analyzer.ensureTableWriteSupported(table_, true), as ModifyStmt does for UPDATE and DELETE. - Commit-time gate: IcebergDmlFinalizer.validateRestDmlOperation() rejects operations missing from SUPPORTED_REST_OPS. MERGE is added to the set. - The REST catalog documentation lists MERGE as supported. OPTIMIZE and TRUNCATE remain blocked. Testing: - Updated AnalyzerCapabilityTest and IcebergRestDmlOperationTest. - Added iceberg-rest-merge.test and iceberg-rest-merge-partition-sort.test, adapted from iceberg-v3-merge.test and iceberg-merge-partition-sort.test. - Added test_rest_catalog_merge and test_rest_catalog_merge_partition_sort, added a MERGE from an HMS table to test_rest_catalog_multicatalog, and updated test_rest_catalog_insert_into. Change-Id: I56751ba22d2f7ac02c09f1a49e4a76c8e0f01565 Assisted-by: Claude Opus 5.5 (Claude Code) --- M docs/topics/impala_iceberg_rest_catalog.xml M fe/src/main/java/org/apache/impala/analysis/Analyzer.java M fe/src/main/java/org/apache/impala/analysis/MergeStmt.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 A testdata/workloads/functional-query/queries/QueryTest/iceberg-rest-merge-partition-sort.test A testdata/workloads/functional-query/queries/QueryTest/iceberg-rest-merge.test M tests/common/iceberg_rest_test_tables.py M tests/custom_cluster/test_iceberg_rest_catalog.py 10 files changed, 1,282 insertions(+), 21 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/43/25143/4 -- To view, visit http://gerrit.cloudera.org:8080/25143 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newpatchset Gerrit-Change-Id: I56751ba22d2f7ac02c09f1a49e4a76c8e0f01565 Gerrit-Change-Number: 25143 Gerrit-PatchSet: 4 Gerrit-Owner: Daniel Vanko <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Nandor Kollar <[email protected]> Gerrit-Reviewer: Peter Rozsa <[email protected]>
