Area: UI
Sub-Area: Description Management
Applies to: OSS + Cloud
Issue
You clear a dataset or column description in the UI and save, but the old text still shows, or different text shows in its place.
You Might Be Asking
- How do I remove a description?
- Why does my cleared description keep coming back?
- Can I edit column descriptions in bulk?
Cause
DataHub stores the description you edit in DataHub separately from the description ingested from the source system. What the UI shows after you clear the edit depends on your deployment.
- Open source DataHub: The UI shows the edited description when it is not empty. Otherwise it falls back to the ingested description. If you clear the edit, the ingested text shows.
- DataHub Cloud v2.4.0 and later: A description you cleared stays blank everywhere. It does not fall back to the ingested text. Only AI-generated documentation shows over a cleared description. See the v2.4.0 release notes.
- DataHub Cloud before v2.4.0: Upgrade to the latest release. The v0.3.13 release notes list a fix in v0.3.13.2 for the inability to clear descriptions on columns with sibling entities.
This is not a backend empty-string bug fixed in v0.3.11. Earlier versions of this article said it was.
Solution
- Edit the description in the UI, clear the text, and save.
- On open source DataHub, expect the ingested description to show again. That is the fallback described above, not a failed save.
- On DataHub Cloud v2.4.4, the description stays blank. To bring back stored text, start editing the description. In the editor, expand Other descriptions (N). The panel starts collapsed. It shows only when other descriptions are stored. It lists each one with its source: "Edited in DataHub", "Written in DataHub", "From the source system", "AI generated", "Propagated" or "Other". Click Use on one to replace the text in the editor, then save.
Edit column descriptions in bulk with the Python SDK
Use the SDK field API (acryl-datahub 1.7.0.20). Load the dataset from the server, change the column, and update. The column helper edits only the entry for the column you name in the dataset's editableSchemaMetadata aspect. env defaults to PROD. Pass env="DEV" or another value if you ingested the dataset with a different env.
from datahub.sdk import DataHubClient, DatasetUrn
client = DataHubClient.from_env()
dataset = client.entities.get(DatasetUrn(platform="snowflake", name="db.schema.table"))
dataset["column_name"].set_description("New description")
client.entities.update(dataset)
Do not build a new EditableSchemaMetadataClass that holds one column and emit it. By default, writes replace the whole aspect, so the other columns' entries are replaced. To change one field without touching the others, read and modify the aspect first, or use a patch. See why you would use PATCH.