cee-shubham commented on issue #19: URL: https://github.com/apache/iceberg-python/issues/19#issuecomment-2379058126
my coder is: from pyiceberg.catalog import load_catalog from pyiceberg.exceptions import NamespaceAlreadyExistsError # Define the catalog configuration catalog_type = "rest" # Specify the catalog type as REST catalog_uri = "http://localhost:8181" # Replace with your rest URL # Load the catalog with the URI directly cat = load_catalog('default', uri=catalog_uri, catalog_type=catalog_type) # Try to create a namespace try: cat.create_namespace('default') except NamespaceAlreadyExistsError: print("Namespace 'default' already exists.") where catalog_uri is rest catalog api and if i am giving nessie uri then its showing: File ~/.local/lib/python3.10/site-packages/pyiceberg/catalog/rest.py:237, in RestCatalog.__init__(self, name, **properties) [235](https://file+.vscode-resource.vscode-cdn.net/home/crimson/Nitin_Sir/Nessie/iceberg-intro-lessons-main/notebooks/~/.local/lib/python3.10/site-packages/pyiceberg/catalog/rest.py:235) super().__init__(name, **properties) [236](https://file+.vscode-resource.vscode-cdn.net/home/crimson/Nitin_Sir/Nessie/iceberg-intro-lessons-main/notebooks/~/.local/lib/python3.10/site-packages/pyiceberg/catalog/rest.py:236) self.uri = properties[URI] --> [237](https://file+.vscode-resource.vscode-cdn.net/home/crimson/Nitin_Sir/Nessie/iceberg-intro-lessons-main/notebooks/~/.local/lib/python3.10/site-packages/pyiceberg/catalog/rest.py:237) self._fetch_config() [238](https://file+.vscode-resource.vscode-cdn.net/home/crimson/Nitin_Sir/Nessie/iceberg-intro-lessons-main/notebooks/~/.local/lib/python3.10/site-packages/pyiceberg/catalog/rest.py:238) self._session = self._create_session() ... Field required [type=missing, input_value={'defaultBranch': 'main',...SupportedApiVersion': 2}, input_type=dict] For further information visit https://errors.pydantic.dev/2.9/v/missing overrides Field required [type=missing, input_value={'defaultBranch': 'main',...SupportedApiVersion': 2}, input_type=dict] while using rest uri it has created namespace but showing error while creating table so now i am confused which uri to use and how -- 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