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: 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

Reply via email to