Area: Best Practices
Sub-Area: Description Management and Metadata Annotation
Applies to: OSS + Cloud
Issue
DataHub shows one description for each table or column. When you edit a description in DataHub, the edit hides the description from the source system, for example Snowflake or dbt. You want readers to see the source description and your DataHub notes at the same time.
You Might Be Asking
- Is there a DataHub setting to show both the ingested description and the edited description at the same time?
- Will a new ingestion run overwrite my edited descriptions?
- How can I add DataHub notes to an asset without hiding the source system description?
- How do I remove my edits so the ingested descriptions show again?
- Can users without edit rights propose a value for a structured property?
Cause
DataHub keeps two descriptions for each table and column:
- Ingestion writes the source description to
datasetProperties(tables) andschemaMetadata(columns). - An edit in the UI or the API goes to
editableDatasetProperties(tables) andeditableSchemaMetadata(columns).
A non-empty edit shows instead of the source description. Ingestion does not overwrite the edit. No setting shows both texts in the description field.
In DataHub Cloud v2.4.0 and later, a description that you clear to blank also hides the source description. It does not fall back to the source text.
Solution
Keep the description for the source text, and put your DataHub notes in a structured property:
- Do not edit the description. Then all users see the source description.
- Create a structured property for the notes: Govern > Structured Properties > + Create. Use the type Text or Rich Text. Under Applies To, select Datasets, and Columns if you need them.
- Pick where the property shows. By default it shows on the asset's Properties tab. You can also show it in the Asset Sidebar, in search filters, or in the columns table.
- Use a property that no ingestion source or transformer sets. Some sources and transformers write structured properties.
The steps are in Create and Add a Structured Property. Structured properties are in open source DataHub and in DataHub Cloud.
On DataHub Cloud, a user without edit rights can propose a value for a structured property. This needs the Propose Structured Properties privilege. The Reader role has it by default. A user with the Manage Structured Property Proposals privilege then approves or rejects it. By default, that is the asset's owners, Editors and Admins. See Proposing Structured Properties.
To show the source description again on an asset that has an edit:
- In DataHub Cloud v2.4.0 and later, edit the description on the asset's Documentation tab, or a column's description. Under Other descriptions, find From the source system, click Use, then click Publish. This saves a copy of the source text as the edit, so later changes in the source do not show.
- If the asset has a Summary tab instead of a Documentation tab, its description editor does not show Other descriptions. Use the PATCH below for the table description.
- To remove the edit itself, use a PATCH that removes only the
descriptionfield ofeditableDatasetProperties, or of each column ineditableSchemaMetadata. See OpenAPI generic patching. - Do not delete the whole
editableSchemaMetadataaspect. It also holds the tags and glossary terms added to columns in DataHub, and you lose them. - Do not delete the whole
editableDatasetPropertiesaspect. It also holds a display name set in DataHub, and you lose it.
Related Documentation
Tags: descriptions, structured-properties, ingestion, editable-metadata, change-proposals, description-priority, metadata-management, best-practices