-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into origin/DownloadLineageResultsCypressTest
- Loading branch information
Showing
16 changed files
with
234 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from datahub.api.entities.dataproduct.dataproduct import DataProduct | ||
from datahub.ingestion.graph.client import DatahubClientConfig, DataHubGraph | ||
|
||
gms_endpoint = "http://localhost:8080" | ||
graph = DataHubGraph(DatahubClientConfig(server=gms_endpoint)) | ||
|
||
data_product = DataProduct( | ||
id="pet_of_the_week", | ||
display_name="Pet of the Week Campagin", | ||
domain="urn:li:domain:ef39e99a-9d61-406d-b4a8-c70b16380206", | ||
description="This campaign includes Pet of the Week data.", | ||
assets=[ | ||
"urn:li:dataset:(urn:li:dataPlatform:snowflake,long_tail_companions.analytics.pet_details,PROD)", | ||
"urn:li:dashboard:(looker,baz)", | ||
"urn:li:dataFlow:(airflow,dag_abc,PROD)", | ||
], | ||
owners=[{"id": "urn:li:corpuser:jdoe", "type": "BUSINESS_OWNER"}], | ||
terms=["urn:li:glossaryTerm:ClientsAndAccounts.AccountBalance"], | ||
tags=["urn:li:tag:adoption"], | ||
properties={"lifecycle": "production", "sla": "7am every day"}, | ||
external_url="https://en.wikipedia.org/wiki/Sloth", | ||
) | ||
|
||
for mcp in data_product.generate_mcp(upsert=False): | ||
graph.emit(mcp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.