kevinjqliu commented on issue #1018:
URL: 
https://github.com/apache/iceberg-python/issues/1018#issuecomment-2273855146

   Thanks for looking into this. The behavior you described above seems like 
the correct one to me. 
   
   > I believe that this behavior is suppressing errors and looks like it's a 
bug as reported in https://github.com/apache/iceberg-python/issues/1006
   
   I don't follow this since the expected value should be `True`. According to 
the spec, the function returns `True` only for the 204 status code. 
   There's a theory in the other thread 
(https://github.com/polaris-catalog/polaris/issues/96#issuecomment-2272474147) 
that the error is due to managed Polaris not implementing the HEAD API, which 
would cause any HEAD request to return 404. 
   
   Reference
   * [tableExists REST 
spec](https://github.com/apache/iceberg/blob/97e034b2cec9408a6f792c410a8eb8dddb452e14/open-api/rest-catalog-open-api.yaml#L833-L864)
   * [`table_exists` PyIceberg REST 
client](https://github.com/apache/iceberg-python/blob/8aeab4951080fa196c0d29c72cba1cbba824ffc4/pyiceberg/catalog/rest.py#L794-L808)
   * [`tableExists` Java 
client](https://github.com/apache/iceberg/blob/97e034b2cec9408a6f792c410a8eb8dddb452e14/api/src/main/java/org/apache/iceberg/catalog/Catalog.java#L279-L286)


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