danielcweeks commented on code in PR #10929: URL: https://github.com/apache/iceberg/pull/10929#discussion_r1759056952
########## core/src/main/java/org/apache/iceberg/rest/RESTTableOperations.java: ########## @@ -97,12 +102,14 @@ public TableMetadata current() { @Override public TableMetadata refresh() { + Endpoint.check(endpoints, Endpoint.V1_LOAD_TABLE); return updateCurrentMetadata( client.get(path, LoadTableResponse.class, headers, ErrorHandlers.tableErrorHandler())); } @Override public void commit(TableMetadata base, TableMetadata metadata) { + Endpoint.check(endpoints, Endpoint.V1_UPDATE_TABLE); Review Comment: Makes sense, I was thinking more in terms of the operation, not the endpoint. 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