Mihaly Szjatinya 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 6:

(4 comments)

@Zoltan, Thanks for review!

I wrongly assumed that on REST catalogs the owner is the principal the REST 
server authenticates, so Impala didn't need to record one, and I left it all to 
IMPALA-15508. Also, unlike for CatalogD, passing DBPROPERTIES/TBLPROPERTIES 
through is really unsafe.

https://gerrit.cloudera.org/#/c/25374/5/fe/src/main/java/org/apache/impala/analysis/CreateDbStmt.java
File fe/src/main/java/org/apache/impala/analysis/CreateDbStmt.java:

https://gerrit.cloudera.org/#/c/25374/5/fe/src/main/java/org/apache/impala/analysis/CreateDbStmt.java@113
PS5, Line 113:
> nit: use multiple instead as several is a bit odd in an error message. The
Done


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 se
> owner is the owner, so please drop "REST catalogs have no owner" here and "
Done


https://gerrit.cloudera.org/#/c/25374/5/fe/src/main/java/org/apache/impala/service/IcebergDdlExecutor.java@221
PS5, Line 221:     String reserved = IcebergUtil.findReservedProperty(
> DBPROPERTIES reach the server unchanged, so CREATE DATABASE ns WITH DBPROPE
Done. The check is a new util function, IcebergUtil.findReservedProperty(), so 
CREATE TABLE (25375) and ALTER TABLE (25387) can reuse it.


https://gerrit.cloudera.org/#/c/25374/5/fe/src/main/java/org/apache/impala/service/IcebergDdlExecutor.java@222
PS5, Line 222:         params.isSetProperties() ? 
params.getProperties().keySet() : null,
             :         IcebergUtil.REST_RESERVED_DB_PROPERTIES);
> DBPROPERTIES ('location'='...') without a LOCATION clause skips the URI pri
Done, rejected.



--
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: 6
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: Wed, 18 Nov 2026 08:21:21 +0000
Gerrit-HasComments: Yes

Reply via email to