mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-25 08:58:26 +00:00
feat(ingest/superset): map awsathena platform name to athena (#10005)
This commit is contained in:
parent
b6956f9a5c
commit
ae3443bcb7
@ -226,8 +226,14 @@ class SupersetSource(StatefulIngestionSourceBase):
|
||||
).json()
|
||||
sqlalchemy_uri = database_response.get("result", {}).get("sqlalchemy_uri")
|
||||
if sqlalchemy_uri is None:
|
||||
return database_response.get("result", {}).get("backend", "external")
|
||||
return get_platform_from_sqlalchemy_uri(sqlalchemy_uri)
|
||||
platform_name = database_response.get("result", {}).get(
|
||||
"backend", "external"
|
||||
)
|
||||
else:
|
||||
platform_name = get_platform_from_sqlalchemy_uri(sqlalchemy_uri)
|
||||
if platform_name == "awsathena":
|
||||
return "athena"
|
||||
return platform_name
|
||||
|
||||
@lru_cache(maxsize=None)
|
||||
def get_datasource_urn_from_id(self, datasource_id):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user