ebyhr commented on code in PR #3960:
URL: https://github.com/apache/iceberg-python/pull/3960#discussion_r4001416887
##########
pyiceberg/catalog/rest/__init__.py:
##########
@@ -1796,6 +1796,13 @@ def view_exists(self, identifier: str | Identifier) ->
bool:
Returns:
bool: True if the view exists, False otherwise.
"""
+ if Capability.V1_VIEW_EXISTS not in self._supported_endpoints:
+ try:
+ self.load_view(identifier)
Review Comment:
nit: We could leave a comment explaining why doing fallback here as
`table_exists` method explains.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]