mirror of
https://github.com/datahub-project/datahub.git
synced 2025-06-27 05:03:31 +00:00
12 lines
325 B
Python
12 lines
325 B
Python
from datahub.sdk.main_client import DataHubClient
|
|
|
|
client = DataHubClient.from_env()
|
|
|
|
# Get column lineage for the entire flow
|
|
results = client.lineage.get_lineage(
|
|
source_urn="urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:snowflake,sales_summary,PROD),id)",
|
|
direction="downstream",
|
|
)
|
|
|
|
print(list(results))
|