mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-30 08:57:09 +00:00
Removes support database for Trino Connection (#7973)
* Removes support database for Trino Connection * Added logic to set catalog or database attribute for connection if not already set
This commit is contained in:
parent
c19ac8df9d
commit
cd6b3d6b8a
@ -155,11 +155,23 @@ class TestSuiteWorkflow:
|
||||
)
|
||||
)
|
||||
service_connection_config = deepcopy(service_connection.__root__.config)
|
||||
if (
|
||||
hasattr(service_connection_config, "supportsDatabase")
|
||||
and not service_connection_config.database
|
||||
):
|
||||
service_connection_config.database = table_fqn.split(".")[1]
|
||||
if hasattr(service_connection_config, "supportsDatabase"):
|
||||
if (
|
||||
hasattr(
|
||||
service_connection_config,
|
||||
"database",
|
||||
)
|
||||
and not service_connection_config.database
|
||||
):
|
||||
service_connection_config.database = table_fqn.split(".")[1]
|
||||
if (
|
||||
hasattr(
|
||||
service_connection_config,
|
||||
"catalog",
|
||||
)
|
||||
and not service_connection_config.catalog
|
||||
):
|
||||
service_connection_config.catalog = table_fqn.split(".")[1]
|
||||
return service_connection_config
|
||||
|
||||
logger.error(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user