mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-06 04:26:57 +00:00
Fixed athena import and lineage/usage validation (#12663)
* Athena fixes * fixed to lower version
This commit is contained in:
parent
dacd13f6d0
commit
795498c54a
@ -120,7 +120,7 @@ base_requirements = {
|
||||
plugins: Dict[str, Set[str]] = {
|
||||
"airflow": {VERSIONS["airflow"]}, # Same as ingestion container. For development.
|
||||
"amundsen": {VERSIONS["neo4j"]},
|
||||
"athena": {"PyAthena[SQLAlchemy]"},
|
||||
"athena": {"pyathena==2.25.2"},
|
||||
"atlas": {},
|
||||
"azuresql": {VERSIONS["pyodbc"]},
|
||||
"azure-sso": {VERSIONS["msal"]},
|
||||
|
||||
@ -69,11 +69,12 @@ class AthenaQueryParserSource(QueryParserSource, ABC):
|
||||
paginator_response = paginator.paginate()
|
||||
for response in paginator_response:
|
||||
response_obj = QueryExecutionIdsResponse(**response)
|
||||
query_details_response = self.client.batch_get_query_execution(
|
||||
QueryExecutionIds=response_obj.QueryExecutionIds
|
||||
)
|
||||
query_details_list = AthenaQueryExecutionList(**query_details_response)
|
||||
yield query_details_list
|
||||
if response_obj.QueryExecutionIds:
|
||||
query_details_response = self.client.batch_get_query_execution(
|
||||
QueryExecutionIds=response_obj.QueryExecutionIds
|
||||
)
|
||||
query_details_list = AthenaQueryExecutionList(**query_details_response)
|
||||
yield query_details_list
|
||||
query_limit -= 1
|
||||
if not query_limit:
|
||||
break
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user