Zoltan Borok-Nagy has posted comments on this change. ( https://gerrit.cloudera.org/25375 )
Change subject: IMPALA-15499: Support CREATE TABLE on Iceberg REST catalogs ...................................................................... Patch Set 4: (4 comments) https://gerrit.cloudera.org/#/c/25375/4/fe/src/main/java/org/apache/impala/service/IcebergDdlExecutor.java File fe/src/main/java/org/apache/impala/service/IcebergDdlExecutor.java: https://gerrit.cloudera.org/#/c/25375/4/fe/src/main/java/org/apache/impala/service/IcebergDdlExecutor.java@267 PS4, Line 267: if (params.isSetTable_properties()) properties.putAll(params.getTable_properties()); : if (params.isSetSort_columns() && !params.getSort_columns().isEmpty()) { : properties.put(AlterTableSortByStmt.TBL_PROP_SORT_COLUMNS, : String.join(",", params.getSort_columns())); : properties.put(AlterTableSortByStmt.TBL_PROP_SORT_ORDER, : params.isSetSorting_order() ? params.getSorting_order().toString() : : TSortingOrder.LEXICAL.toString()); : } please stamp owner = params.getOwner(). Tables created without it stay owner-less once IMPALA-15508 lands, and their creators lose access under Ranger {OWNER} policies. Drop "REST catalogs have no owner" from the javadoc and "No owner is set" from the commit message. https://gerrit.cloudera.org/#/c/25375/4/fe/src/main/java/org/apache/impala/service/IcebergRestDdlRouter.java File fe/src/main/java/org/apache/impala/service/IcebergRestDdlRouter.java: https://gerrit.cloudera.org/#/c/25375/4/fe/src/main/java/org/apache/impala/service/IcebergRestDdlRouter.java@106 PS4, Line 106: if (analysis.isCreateTableStmt()) { isCreateTableStmt() also routes LIKE FILE to REST (CreateTableLikeFileStmt extends CreateTableStmt), but the commit message, docs and tests don't mention it. Please add a test, or exclude it. https://gerrit.cloudera.org/#/c/25375/4/fe/src/main/java/org/apache/impala/service/IcebergRestDdlRouter.java@272 PS4, Line 272: if (stmt.getTblProperties().containsKey(IcebergTable.ICEBERG_CATALOG)) { please also reject owner in TBLPROPERTIES, case-insensitively ("use ALTER TABLE SET OWNER"). Otherwise TBLPROPERTIES ('owner'='bob') sets an owner that IMPALA-15508 will read. https://gerrit.cloudera.org/#/c/25375/4/fe/src/test/java/org/apache/impala/service/IcebergDdlExecutorTest.java File fe/src/test/java/org/apache/impala/service/IcebergDdlExecutorTest.java: https://gerrit.cloudera.org/#/c/25375/4/fe/src/test/java/org/apache/impala/service/IcebergDdlExecutorTest.java@329 PS4, Line 329: public void testCreateTable() throws Exception { Please assert owner = session user, that 'owner'/'OWNER' are rejected, and that IF NOT EXISTS leaves owner unchanged. -- To view, visit https://gerrit.cloudera.org/25375 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I4e8b7a3afa4cbc7d818013272d22d00c91194caa Gerrit-Change-Number: 25375 Gerrit-PatchSet: 4 Gerrit-Owner: Mihaly Szjatinya <[email protected]> Gerrit-Reviewer: Aleksandr Efimov <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Mihaly Szjatinya <[email protected]> Gerrit-Reviewer: Peter Rozsa <[email protected]> Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]> Gerrit-Comment-Date: Tue, 17 Nov 2026 16:15:20 +0000 Gerrit-HasComments: Yes
