mirror of
https://github.com/datahub-project/datahub.git
synced 2025-06-27 05:03:31 +00:00
11 lines
301 B
Python
11 lines
301 B
Python
from datahub.sdk import CorpUserUrn, DataHubClient, DatasetUrn
|
|
|
|
client = DataHubClient.from_env()
|
|
|
|
dataset = client.entities.get(DatasetUrn(platform="hive", name="realestate_db.sales"))
|
|
|
|
# Add owner with the TECHNICAL_OWNER type
|
|
dataset.add_owner(CorpUserUrn("jdoe"))
|
|
|
|
client.entities.update(dataset)
|