rdblue commented on code in PR #12259:
URL: https://github.com/apache/iceberg/pull/12259#discussion_r1955238348
##########
core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java:
##########
@@ -1239,7 +1239,9 @@ public List<TableIdentifier> listViews(SessionContext
context, Namespace namespa
@Override
public boolean viewExists(SessionContext context, TableIdentifier
identifier) {
- Endpoint.check(endpoints, Endpoint.V1_VIEW_EXISTS);
+ if (!endpoints.contains(Endpoint.V1_VIEW_EXISTS)) {
+ return false;
Review Comment:
Wasn't the previous behavior to attempt to load the view if the HEAD request
is not supported? I think it would be safer to check `V1_LOAD_VIEW` and use
that if it is supported before returning false.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]