Zoltan Borok-Nagy has posted comments on this change. ( https://gerrit.cloudera.org/25374 )
Change subject: IMPALA-15503: Support CREATE/DROP DATABASE on Iceberg REST catalogs ...................................................................... Patch Set 5: (3 comments) https://gerrit.cloudera.org/#/c/25374/5/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/25374/5/fe/src/main/java/org/apache/impala/service/IcebergDdlExecutor.java@208 PS5, Line 208: * Creates a database, i.e. a namespace, through its REST catalog. The comment, the : * location and the database properties become namespace properties; the REST server : * decides which it supports. The owner is not set: REST catalogs have no owner. owner is the owner, so please drop "REST catalogs have no owner" here and "no owner is set" from the commit message. Leave a TODO(IMPALA-15508) to stamp owner = params.getOwner(), as HMS does (CatalogOpExecutor.java:2347). The stamp can't be added here yet, because the HadoopCatalog test server rejects any namespace properties. https://gerrit.cloudera.org/#/c/25374/5/fe/src/main/java/org/apache/impala/service/IcebergDdlExecutor.java@221 PS5, Line 221: if (params.isSetProperties()) properties.putAll(params.getProperties()); DBPROPERTIES reach the server unchanged, so CREATE DATABASE ns WITH DBPROPERTIES ('owner'='bob') (or 'OWNER', 'ownerType'='ROLE') sets the namespace owner. IMPALA-15508 will read that value, including values written before it lands. Please reject owner/ownerType case-insensitively in routeCreateDb and re-check here. https://gerrit.cloudera.org/#/c/25374/5/fe/src/main/java/org/apache/impala/service/IcebergDdlExecutor.java@222 PS5, Line 222: if (params.isSetComment()) properties.put("comment", params.getComment()); : if (params.isSetLocation()) properties.put("location", params.getLocation()); DBPROPERTIES ('location'='...') without a LOCATION clause skips the URI privilege check that LOCATION gets (CreateDbStmt.java:126-128). Please reject location in DBPROPERTIES, or authorize it. -- To view, visit https://gerrit.cloudera.org/25374 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I738850dd6103f1bd4417379e0ebea56b00543e90 Gerrit-Change-Number: 25374 Gerrit-PatchSet: 5 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: Nandor Kollar <[email protected]> Gerrit-Reviewer: Peter Rozsa <[email protected]> Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]> Gerrit-Comment-Date: Tue, 17 Nov 2026 16:11:11 +0000 Gerrit-HasComments: Yes
