mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-05 21:29:48 +00:00
11 lines
319 B
Python
11 lines
319 B
Python
|
|
from datahub.metadata.urns import DatasetUrn
|
||
|
|
from datahub.sdk import DataHubClient
|
||
|
|
|
||
|
|
client = DataHubClient.from_env()
|
||
|
|
|
||
|
|
client.lineage.add_lineage(
|
||
|
|
upstream=DatasetUrn(platform="snowflake", name="sales_raw"),
|
||
|
|
downstream=DatasetUrn(platform="snowflake", name="sales_cleaned"),
|
||
|
|
column_lineage="auto_strict",
|
||
|
|
)
|