ebyhr commented on code in PR #3288:
URL: https://github.com/apache/iceberg-python/pull/3288#discussion_r3196933809
##########
pyiceberg/catalog/__init__.py:
##########
@@ -674,6 +674,21 @@ def update_namespace_properties(
ValueError: If removals and updates have overlapping keys.
"""
+ @abstractmethod
+ def register_view(self, identifier: str | Identifier, metadata_location:
str) -> View:
+ """Register a new view using existing metadata.
+
+ Args:
+ identifier (Union[str, Identifier]): View identifier for the view
+ metadata_location (str): The location to the metadata
+
+ Returns:
+ View: The newly registered view
+
+ Raises:
+ ViewAlreadyExistsError: If the view already exists
Review Comment:
Good catch! Added TableAlreadyExistsError.
--
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]