snazy commented on code in PR #12294:
URL: https://github.com/apache/iceberg/pull/12294#discussion_r1958078323


##########
core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java:
##########
@@ -444,12 +444,14 @@ public void renameTable(SessionContext context, 
TableIdentifier from, TableIdent
 
   @Override
   public boolean tableExists(SessionContext context, TableIdentifier 
identifier) {
-    Endpoint.check(endpoints, Endpoint.V1_TABLE_EXISTS);
-
     try {
       checkIdentifierIsValid(identifier);
-      client.head(paths.table(identifier), headers(context), 
ErrorHandlers.tableErrorHandler());
-      return true;
+      if (endpoints.contains(Endpoint.V1_TABLE_EXISTS)) {

Review Comment:
   Not an issue of this PR, but I doubt that there is any Iceberg-REST-service 
implementation that does not implement the `HEAD` endpoint - simply because 
versions up to 1.7 did not fail.
   
   I'd propose to replace the V1_TABLE/VIEW/NAMESPACE_EXISTS with 
V1_LOAD_TABLE/VIEW/NAMESPACE to revert to the pre-1.8 behavior.



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