mirror of
https://github.com/datahub-project/datahub.git
synced 2025-06-27 05:03:31 +00:00
13 lines
324 B
Python
13 lines
324 B
Python
from datahub.metadata.urns import DatasetUrn
|
|
from datahub.sdk.main_client import DataHubClient
|
|
|
|
client = DataHubClient.from_env()
|
|
|
|
downstream_lineage = client.lineage.get_lineage(
|
|
source_urn=DatasetUrn(platform="snowflake", name="sales_summary"),
|
|
direction="downstream",
|
|
max_hops=2,
|
|
)
|
|
|
|
print(downstream_lineage)
|