sclee01 commented on code in PR #2196: URL: https://github.com/apache/polaris/pull/2196#discussion_r2238598998
########## persistence/relational-jdbc/src/main/java/org/apache/polaris/persistence/relational/jdbc/DatasourceOperations.java: ########## @@ -116,6 +116,28 @@ public void executeScript(InputStream scriptInputStream) throws SQLException { } } + public boolean checkSchemaExists(@Nonnull String schemaName) { + final String sql = "SELECT 1 FROM information_schema.schemata WHERE schema_name = ?"; Review Comment: I thought this would stay PostgreSQL-only, so I used the query directly. But updated to use getMetaData() for better portability. -- 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...@polaris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org