danielcweeks commented on code in PR #10929: URL: https://github.com/apache/iceberg/pull/10929#discussion_r1757279010
########## 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: Shouldn't this be a `CREATE` or `UPDATE` check (possibly in the switch statement below)? -- 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