Zoltan Borok-Nagy has posted comments on this change. ( http://gerrit.cloudera.org:8080/25039 )
Change subject: IMPALA-15493: Coordinator-local DDL execution for Iceberg REST catalogs ...................................................................... Patch Set 8: (4 comments) Thanks for working on this! http://gerrit.cloudera.org:8080/#/c/25039/8/docs/topics/impala_iceberg_rest_catalog.xml File docs/topics/impala_iceberg_rest_catalog.xml: http://gerrit.cloudera.org:8080/#/c/25039/8/docs/topics/impala_iceberg_rest_catalog.xml@133 PS8, Line 133: Required for INSERT INTO, INSERT OVERWRITE and DROP TABLE, and unused Nit: UPDATE and DELETE need it too. http://gerrit.cloudera.org:8080/#/c/25039/8/fe/src/main/java/org/apache/impala/catalog/local/MultiMetaProvider.java File fe/src/main/java/org/apache/impala/catalog/local/MultiMetaProvider.java: http://gerrit.cloudera.org:8080/#/c/25039/8/fe/src/main/java/org/apache/impala/catalog/local/MultiMetaProvider.java@220 PS8, Line 220: previous.secondaryTables_.forEach((tblName, tblProvider) -> { Kept tables never expire, also after NoSuchNamespaceException. If the namespace is dropped and the name reappears in another catalog, DROP TABLE fails as ambiguous until restart. OK as a follow-up (IMPALA-13698?). http://gerrit.cloudera.org:8080/#/c/25039/8/fe/src/main/java/org/apache/impala/service/Frontend.java File fe/src/main/java/org/apache/impala/service/Frontend.java: http://gerrit.cloudera.org:8080/#/c/25039/8/fe/src/main/java/org/apache/impala/service/Frontend.java@698 PS8, Line 698: .getCatalogRef(stmt.getDb(), stmt.getTbl()).getRestCatalogName(); With IF EXISTS, a table analysis didn't find still gets dropped, with only ANY checked (L122 in DropTableOrViewStmt). E.g. DROP TABLE IF EXISTS db.MyTbl PURGE on a mixed-case REST table. CatalogD is a no-op here (CatalogOpExecutor.dropTableOrView()), could this be too? http://gerrit.cloudera.org:8080/#/c/25039/8/fe/src/main/java/org/apache/impala/service/IcebergDdlExecutor.java File fe/src/main/java/org/apache/impala/service/IcebergDdlExecutor.java: http://gerrit.cloudera.org:8080/#/c/25039/8/fe/src/main/java/org/apache/impala/service/IcebergDdlExecutor.java@108 PS8, Line 108: String dbName = params.getTable_name().getDb_name(); These are the names as typed: the parser keeps the case of identifiers and DropTableOrViewStmt.toThrift() doesn't normalize them. CatalogD lower-cases on its side, but here they go to the REST server unchanged, while analysis and routing use lower case. For a REST table db.tbl: - DROP TABLE Db.Tbl passes analysis, then fails with "Table does not exist: Db.Tbl" (case-sensitive server, e.g. the HadoopCatalog-backed test server). - DROP TABLE IF EXISTS Db.Tbl returns "Table does not exist." and leaves the table in place. - isDbBlacklisted() (L110) is case-sensitive, so DROP TABLE IF EXISTS SYS.t skips the database blacklist; on a server that ignores case that drops sys.t. Could you lower-case both names here, and add a test with upper-case names? Mixed-case REST names can't be resolved by Impala anyway (LocalDb looks tables up lower-cased) -- To view, visit http://gerrit.cloudera.org:8080/25039 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I932a211b25ea4e24a607d047c35da186d8922d02 Gerrit-Change-Number: 25039 Gerrit-PatchSet: 8 Gerrit-Owner: Peter Rozsa <[email protected]> Gerrit-Reviewer: Aleksandr Efimov <[email protected]> Gerrit-Reviewer: Daniel Vanko <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Mihaly Szjatinya <[email protected]> Gerrit-Reviewer: Noemi Pap-Takacs <[email protected]> Gerrit-Reviewer: Peter Rozsa <[email protected]> Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]> Gerrit-Comment-Date: Wed, 28 Oct 2026 13:17:31 +0000 Gerrit-HasComments: Yes
