Skip to content

Commit a648775

Browse files
kevinjqliuCopilot
andcommitted
Explain the view existence fallback for older REST catalogs
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent bd6370e commit a648775

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎pyiceberg/catalog/rest/__init__.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1796,6 +1796,7 @@ def view_exists(self, identifier: str | Identifier) -> bool:
17961796
Returns:
17971797
bool: True if the view exists, False otherwise.
17981798
"""
1799+
# fallback in order to work with older rest catalog implementations
17991800
if Capability.V1_VIEW_EXISTS not in self._supported_endpoints:
18001801
try:
18011802
self.load_view(identifier)

0 commit comments

Comments
 (0)