mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-04 07:34:44 +00:00
15 lines
371 B
Python
15 lines
371 B
Python
from datahub.sdk import DataHubClient, DatasetUrn
|
|
|
|
client = DataHubClient.from_env()
|
|
|
|
dataset = client.entities.get(
|
|
DatasetUrn(platform="hive", name="fct_users_created", env="PROD")
|
|
)
|
|
|
|
# Print descriptions for each column
|
|
column_descriptions = {}
|
|
for field in dataset.schema:
|
|
column_descriptions[field.field_path] = field.description
|
|
|
|
print(column_descriptions)
|