Area: Product Issues
Sub-Area: Column Lineage UI Display
Applies to: OSS + Cloud
Issue
Table lineage shows for your Teradata views, but column lineage does not show in the UI.
You Might Be Asking
- Why does table lineage work but column lineage does not for Teradata?
- How do I get column lineage for Teradata views?
- What happens to my existing Teradata datasets if I turn on
convert_urns_to_lowercase?
Cause
Teradata returns object names in the case they were created with, often uppercase. The SQL parser makes the table names in view SQL lowercase. Column lineage is built only when the parser finds the schema of each upstream table.
When the dataset names are not lowercase, the lookup misses, and no column lineage is built. Before DataHub CLI v1.5.0.2, the Teradata source did not apply convert_urns_to_lowercase to the names it uses for this lookup.
Solution
-
Use the DataHub CLI v1.5.0.2 or later:
pip install 'acryl-datahub[teradata]>=1.5.0.2'For a source that runs from the DataHub UI, set CLI Version under Advanced Settings to 1.5.0.2 or later.
-
Set
convert_urns_to_lowercase: truein the Teradata recipe. Read the caution below first. -
Make sure the upstream tables are ingested, by this recipe or by another Teradata recipe that uses the same
platform_instance,envandconvert_urns_to_lowercasevalues. -
Keep
incremental_lineage: false. It is the default. Each run then replaces the lineage instead of adding to it. -
Run the ingestion. Then open the dataset's Lineage tab and expand a node's columns to see column lineage.
Caution: convert_urns_to_lowercase is part of each dataset URN, and it defaults to false. Choose its value before the first run and keep it. If you already ingested Teradata without it, turning it on changes the URN of every Teradata dataset (MYDB.MYTABLE becomes mydb.mytable). With stateful ingestion, the next run soft deletes the old datasets as stale. If more than fail_safe_threshold percent (75 by default) of the last run's URNs changed, the fail-safe stops this. The run then soft deletes nothing, reports a failure, and you get duplicates. To soft delete the old datasets, set stateful_ingestion.fail_safe_threshold: 100 for that one run, then remove it. Without stateful ingestion, you get duplicates. Documentation, tags, owners and glossary terms added in the UI stay on the old datasets. Plan how to move them before you switch.
The convert_urns_to_lowercase option description in Teradata config details gives the same warning. That page also lists the other recipe options.
Related Documentation
Tags: teradata, column-lineage, ui-display, case-mismatch, ingestion-config, convert-urns-to-lowercase