mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-27 18:07:57 +00:00
fix(superset): get alternate platform value if sqlalchemy_uri param is missing (#8667)
This commit is contained in:
parent
cc94ffbf6c
commit
ada40e6edd
@ -200,6 +200,8 @@ class SupersetSource(StatefulIngestionSourceBase):
|
||||
f"{self.config.connect_uri}/api/v1/database/{database_id}"
|
||||
).json()
|
||||
sqlalchemy_uri = database_response.get("result", {}).get("sqlalchemy_uri")
|
||||
if sqlalchemy_uri is None:
|
||||
return database_response.get("result", {}).get("backend", "external")
|
||||
return sql_common.get_platform_from_sqlalchemy_uri(sqlalchemy_uri)
|
||||
|
||||
@lru_cache(maxsize=None)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user