mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-09 16:03:31 +00:00
feat(ingest/dbt-cloud): use job-based graphql queries (#8647)
This commit is contained in:
parent
130f908a49
commit
c5a2e8923e
@ -162,11 +162,13 @@ _DBT_FIELDS_BY_TYPE = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_DBT_GRAPHQL_QUERY = """
|
_DBT_GRAPHQL_QUERY = """
|
||||||
query DatahubMetadataQuery_{type}($jobId: Int!, $runId: Int) {{
|
query DatahubMetadataQuery_{type}($jobId: BigInt!, $runId: BigInt) {{
|
||||||
{type}(jobId: $jobId, runId: $runId) {{
|
job(id: $jobId, runId: $runId) {{
|
||||||
|
{type} {{
|
||||||
{fields}
|
{fields}
|
||||||
}}
|
}}
|
||||||
}}
|
}}
|
||||||
|
}}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -218,7 +220,7 @@ class DBTCloudSource(DBTSourceBase):
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
raw_nodes.extend(data[node_type])
|
raw_nodes.extend(data["job"][node_type])
|
||||||
|
|
||||||
nodes = [self._parse_into_dbt_node(node) for node in raw_nodes]
|
nodes = [self._parse_into_dbt_node(node) for node in raw_nodes]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user