Skip to main content
Version: Next

About DataHub Lineage

Feature Availability
Self-Hosted DataHub
Managed DataHub

Lineage is used to capture data dependencies within an organization. It allows you to track the inputs from which a data asset is derived, along with the data assets that depend on it downstream.

Viewing Lineage

You can view lineage under Lineage tab or Lineage Visualization screen.

The UI shows the latest version of the lineage. The time picker can be used to filter out edges within the latest version to exclude those that were last updated outside of the time window. Selecting time windows in the patch will not show you historical lineages. It will only filter the view of the latest version of the lineage.

The Lineage Tab is greyed out - why can’t I click on it?

This means you have not yet ingested lineage metadata for that entity. Please ingest lineage to proceed.

Adding Lineage

Ingestion Source

If you're using an ingestion source that supports extraction of Lineage (e.g. the "Table Lineage Capability"), then lineage information can be extracted automatically. For detailed instructions, refer to the source documentation for the source you are using.

UI

As of v0.9.5, DataHub supports the manual editing of lineage between entities. Data experts are free to add or remove upstream and downstream lineage edges in both the Lineage Visualization screen as well as the Lineage tab on entity pages. Use this feature to supplement automatic lineage extraction or establish important entity relationships in sources that do not support automatic extraction. Editing lineage by hand is supported for Datasets, Charts, Dashboards, and Data Jobs. Please refer to our UI Guides on Lineage for more information.

Recommendation on UI-based lineage

Lineage added by hand and programmatically may conflict with one another to cause unwanted overwrites. It is strongly recommend that lineage is edited manually in cases where lineage information is not also extracted in automated fashion, e.g. by running an ingestion source.

API

If you are not using a Lineage-support ingestion source, you can programmatically emit lineage edges between entities via API. Please refer to API Guides on Lineage for more information.

Lineage Support

Table-level vs Column-level lineages

Types of Lineage Connections

Types of lineage connections supported in DataHub and the example codes are as follows.

ConnectionExamplesA.K.A
Dataset to Dataset- lineage_emitter_mcpw_rest.py
- lineage_emitter_rest.py
- lineage_emitter_kafka.py
- lineage_emitter_dataset_finegrained.py
- Datahub BigQuery Lineage
- Datahub Snowflake Lineage
DataJob to DataFlow- Datahub dbt LineageDBT Lineage
DataJob to Dataset- lineage_dataset_job_dataset.py
- lineage_job_dataflow.py
Pipeline Lineage
Chart to Dashboard- lineage_chart_dashboard.py
Chart to Dataset- lineage_dataset_chart.py
Our Roadmap

We're actively working on expanding lineage support for new data sources. Visit our Official Roadmap for upcoming updates!

References