ajantha-bhat commented on code in PR #9487: URL: https://github.com/apache/iceberg/pull/9487#discussion_r1462748153
########## core/src/main/java/org/apache/iceberg/jdbc/JdbcCatalog.java: ########## @@ -245,13 +270,17 @@ public List<TableIdentifier> listTables(Namespace namespace) { row -> JdbcUtil.stringToTableIdentifier( row.getString(JdbcUtil.TABLE_NAMESPACE), row.getString(JdbcUtil.TABLE_NAME)), - JdbcUtil.LIST_TABLES_SQL, + JdbcUtil.listTablesSql(), catalogName, JdbcUtil.namespaceToString(namespace)); } @Override public void renameTable(TableIdentifier from, TableIdentifier to) { + if (viewExists(to)) { + throw new AlreadyExistsException("Cannot rename %s to %s. View already exists", from, to); Review Comment: All the catalog follow the same error message as testcase expects it. https://github.com/apache/iceberg/blob/70b7aa534b2c79ccd7b6c0e0fd1be980772bb20a/core/src/test/java/org/apache/iceberg/view/ViewCatalogTests.java#L688 -- 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