ebyhr commented on code in PR #11864: URL: https://github.com/apache/iceberg/pull/11864#discussion_r1896351505
########## core/src/main/java/org/apache/iceberg/jdbc/JdbcCatalog.java: ########## @@ -162,8 +162,8 @@ private void initializeCatalogTables() { DatabaseMetaData dbMeta = conn.getMetaData(); ResultSet tableExists = dbMeta.getTables( - null /* catalog name */, - null /* schemaPattern */, + conn.getCatalog() /* catalog name */, + conn.getSchema() /* schemaPattern */, Review Comment: The 2nd argument needs an escape like #11863. It's a pattern, not a name. This check will fail if the similar schema exists, e.g. `dev` and `d_v`. Same for `NAMESPACE_PROPERTIES_TABLE_NAME`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org