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 5: (3 comments) Thanks for review! https://gerrit.cloudera.org/#/c/25374/4//COMMIT_MSG Commit Message: https://gerrit.cloudera.org/#/c/25374/4//COMMIT_MSG@24 PS4, Line 24: - CASCADE is rejected, as the REST protocol drops empty namespaces > Please add an ticket for a future improvement where we implement it on the Filed IMPALA-15819. https://gerrit.cloudera.org/#/c/25374/4/fe/src/main/java/org/apache/impala/catalog/FeCatalog.java File fe/src/main/java/org/apache/impala/catalog/FeCatalog.java: https://gerrit.cloudera.org/#/c/25374/4/fe/src/main/java/org/apache/impala/catalog/FeCatalog.java@86 PS4, Line 86: getCatalogRef(S > nit: can we call it getCatalogRef? Yeah, good point. https://gerrit.cloudera.org/#/c/25374/4/fe/src/main/java/org/apache/impala/catalog/local/IcebergMetaProvider.java File fe/src/main/java/org/apache/impala/catalog/local/IcebergMetaProvider.java: https://gerrit.cloudera.org/#/c/25374/4/fe/src/main/java/org/apache/impala/catalog/local/IcebergMetaProvider.java@346 PS4, Line 346: return ImmutableList.of(); > What is the decision behind this change? I think it's better to keep it as DROP DATABASE needs it: DropDbStmt checks db.numFunctions(), which goes through LocalDb.loadFunctionNames() to the provider. With the exception, DROP DATABASE of any REST namespace failed during analysis. We could change the DROP DATABASE Analysis logic based on table type, but I'd keep it this way if you don't insist. An empty list is also technically the correct answer, since REST catalogs hold no Impala functions; loadFunction() still throws, as fetching a function can't succeed. -- 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 14:10:14 +0000 Gerrit-HasComments: Yes
