rdblue commented on code in PR #9853: URL: https://github.com/apache/iceberg/pull/9853#discussion_r1510022119
########## core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java: ########## @@ -1058,12 +1058,17 @@ public List<TableIdentifier> listViews(SessionContext context, Namespace namespa public View loadView(SessionContext context, TableIdentifier identifier) { checkViewIdentifierIsValid(identifier); - LoadViewResponse response = - client.get( - paths.view(identifier), - LoadViewResponse.class, - headers(context), - ErrorHandlers.viewErrorHandler()); + LoadViewResponse response; + try { + response = + client.get( + paths.view(identifier), + LoadViewResponse.class, + headers(context), + ErrorHandlers.viewErrorHandler()); + } catch (UnsupportedOperationException | RESTException e) { + throw new NoSuchViewException("Service does not support views"); Review Comment: Yeah, I think you're right. -- 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