Lineage overview
Lineage shows how data flows: which jobs read and write which datasets, and which source columns feed each target column. In DataLoris it answers two questions during an incident:
- Where does this broken table get its data? (possible root causes upstream)
- What is affected downstream? (the blast radius)
How lineage gets into DataLoris
Section titled “How lineage gets into DataLoris”Today you push lineage to the REST API as JSON, with an API key that has the
lineage:write scope. Every push describes one or more jobs with their inputs, outputs and column
mappings. Follow push lineage with the API.
You can build that JSON from what you already know about your pipelines (a dbt manifest, Airflow task definitions, your own ETL configuration), or extract column mappings from SQL with the open-source parser sql-datalineage, maintained by the DataLoris team.
The model
Section titled “The model”| Concept | Examples | Identified by |
|---|---|---|
| Dataset | A table or view, a Kafka topic, a set of files, an external API | namespace + name |
| Job | An Airflow task, a dbt model, a Spark job, a CDC connector, an export, a SQL script | namespace + name |
| Edge | A job’s input dataset flows into its output dataset | — |
| Column mapping | orders_daily.revenue comes from orders.amount, aggregated |
— |
Each column mapping has a transform type, such as a direct copy, an aggregation or a join key. See the payload reference.
A job is the unit of replacement: when you push a job again, its inputs, outputs, edges and column mappings are replaced by the new ones (old ones are kept as history).
Linking lineage to monitored tables
Section titled “Linking lineage to monitored tables”A dataset links to a monitored table (asset) when its namespace and name match the connection:
| Warehouse | Namespace | Name |
|---|---|---|
| PostgreSQL | postgres://host:port (as in the connection) |
database.schema.table, lower case |
| BigQuery | bigquery |
project.dataset.table |
DataLoris derives these from each connection automatically. Linked datasets show their health in the graph: green when healthy, pulsing red with an open incident, dashed grey when not checked yet. If your lineage uses other namespaces, set the connection’s Lineage namespace to match. Details: naming.
The lineage graph
Section titled “The lineage graph”Open Lineage in the sidebar to search datasets and jobs, see failing tables and their reach, browse datasets by namespace and review recent submissions. Opening a dataset shows its graph, with these controls:
| Control | Effect |
|---|---|
| Show jobs | Draw jobs between datasets (dataset → job → dataset). |
| Column lineage | Expand datasets into columns and draw column mappings. Click a column to highlight its full path. |
| Indirect sources | Show or hide indirect mappings (joins, filters, grouping). |
| Show impact | Colour what an open incident may affect downstream. |
| Show stale | Show jobs that stopped reporting. |
| Group by | Collapse datasets by namespace or schema. |
Click a node for its details panel (health, failing rules, neighbours, columns, the jobs that build it) and Focus graph here to re-centre. Nodes can be dragged; Reset layout restores the automatic layout. The URL keeps your view, so you can share it.
The asset page’s Lineage tab and each incident’s Lineage section summarise the same information, with Open in lineage graph.
Failure impact
Section titled “Failure impact”When a monitored table fails, DataLoris walks the lineage downstream and uses each failing rule’s scope to decide what may be affected:
| Failing rules | Downstream marked as |
|---|---|
| At least one table-level rule | Whole table may be affected, for every dataset downstream |
| Only column-level rules | Affected columns: the columns that column lineage reaches from the failing columns |
| Column-level, across a link without column mappings | Possibly affected: lineage cannot tell |
| Only errors (checks could not run) | Nothing |
Keeping lineage clean
Section titled “Keeping lineage clean”- Push with a complete scope to retire jobs you deleted.
- Jobs that stop reporting become stale and are hidden by default: after 30 days or three times their usual push interval, whichever is longer, or after one day without a heartbeat for jobs that send heartbeats.
- Editors can fix mistakes with Edit lineage in the graph (remove a job, dataset, column or link). The next push of an affected job restores whatever it still reports.