timsaucer commented on code in PR #1363:
URL:
https://github.com/apache/datafusion-python/pull/1363#discussion_r2782490399
##########
python/datafusion/catalog.py:
##########
@@ -195,6 +243,38 @@ def kind(self) -> str:
return self._inner.kind
+class CatalogProviderList(ABC):
+ """Abstract class for defining a Python based Catalog Provider List."""
+
+ @abstractmethod
+ def catalog_names(self) -> set[str]:
+ """Set of the names of all catalogs in this catalog list."""
+ ...
+
+ @abstractmethod
+ def catalog(self, name: str) -> Catalog | None:
Review Comment:
Good point! This should be any of the 3 returnable types, including
`Catalog`.
--
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]