mirror of
https://github.com/datahub-project/datahub.git
synced 2025-06-27 05:03:31 +00:00
11 lines
312 B
Python
11 lines
312 B
Python
from datahub.sdk import DataHubClient, DatasetUrn, GlossaryTermUrn
|
|
|
|
client = DataHubClient.from_env()
|
|
|
|
dataset = client.entities.get(
|
|
DatasetUrn(platform="hive", name="realestate_db.sales", env="PROD")
|
|
)
|
|
dataset.add_term(GlossaryTermUrn("Classification.HighlyConfidential"))
|
|
|
|
client.entities.update(dataset)
|