danielcweeks commented on code in PR #9487: URL: https://github.com/apache/iceberg/pull/9487#discussion_r1475376446
########## core/src/main/java/org/apache/iceberg/jdbc/JdbcTableOperations.java: ########## @@ -71,7 +68,7 @@ public void doRefresh() { Map<String, String> table; try { - table = getTable(); + table = JdbcUtil.tableOrView(true, connections, catalogName, tableIdentifier); Review Comment: Now I'm seeing what this is doing. I think we need to update this method as it's rather confusing that the first param is toggling between loading a table and a view. We should either split it to to be `loadTable` and `loadView` or have something more explicit (like an enum) for the type. -- 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