danielcweeks commented on code in PR #12259:
URL: https://github.com/apache/iceberg/pull/12259#discussion_r1956504678


##########
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:
   We have some inconsistency about how we're handling this.  The `listViews` 
takes the same approach as what I have here, which also aligns with our 
`DEFAULT_ENDPOINTS`, so it's strange that it would call load view, but list 
view would return nothing.



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