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

   Hi @TiansuYu and @ndrluis - thank you for bringing up this point, and sorry 
for not getting around to looking at this earlier.
   
   Similar to what @TiansuYu suggested, I'm of the opinion that we should do 
the following:
   
   - 200, 204: return True
   - 404: return False
   - others, raise a corresponding response error.
   
   The reason is, because there's a numerous different factors as to whether a 
REST endpoint will return a non non 204/404 response, and it would be erroneous 
for us to return false on any other status code. If users are relying on this 
endpoint to return affirmatively say that the table exists or not for their use 
case, and if the REST catalog returns a 5xx error due to an unknown reason, 
having that be interpreted as False is error-prone


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