derrickHu0702 opened a new issue, #8603:
URL: https://github.com/apache/gravitino/issues/8603
### Version
0.9.0
### Describe what's wrong
When using the Gravitino Python client, calling
gravitino_client.load_catalog("catalog_name") on a catalog that is supposed to
be of a relational type (e.g., Hive) results in a NotImplementedError:
Unsupported catalog type: Type.RELATIONAL.
This is counter-intuitive because relational catalogs are a supported
feature. The error message suggests that the RELATIONAL type enum itself is not
recognized during the loading process, which might point to an issue in the
client-side implementation for handling this catalog type. The creation of the
relational catalog might succeed, but any subsequent attempt to load it fails.
The implementation of dto_converters.py::to_catalog seems to be missing a
case for Catalog.Type.RELATIONAL. It likely has handlers for other types like
FILESET or MODEL, but the logic to instantiate a RelationalCatalog object on
the client side is either missing or failing, leading to the
NotImplementedError.
### Error message and/or stacktrace
Traceback (most recent call last):
File "/gravitino-demo/python/test_origin_schema.py", line 15, in <module>
catalog = client.load_catalog("test_catalog_volc")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/gravitino-demo/python/.venv/lib/python3.11/site-packages/gravitino/client/gravitino_client.py",
line 77, in load_catalog
return self.get_metalake().load_catalog(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/gravitino-demo/python/.venv/lib/python3.11/site-packages/gravitino/client/gravitino_metalake.py",
line 114, in load_catalog
return DTOConverters.to_catalog(
^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/gravitino-demo/python/.venv/lib/python3.11/site-packages/gravitino/client/dto_converters.py",
line 80, in to_catalog
raise NotImplementedError("Unsupported catalog type: " +
str(catalog.type()))
NotImplementedError: Unsupported catalog type: Type.RELATIONAL
### How to reproduce
apache-gravitino: 0.9.1
### Additional context
_No response_
--
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]