Lineage and Blast Radius

Concepts covered: Dependency Management

Lineage is the graph of which datasets are built from which. The nodes are tables and models, plus the dashboards that read them, and each edge records that 1 node reads another. The same graph answers 2 different questions depending on the direction you walk it.

Backward lineage (upstream)
  • From a node to everything it reads, then everything those read
  • Answers: where could this bad number have come from?
  • Used during an incident to find the origin
Forward lineage (downstream)
  • From a node to everything that reads it, and onward
  • Answers: what breaks if this node changes or goes bad?
  • Used before a change and during an incident to size the damage

The orders_daily graph

Arrows point from the dataset that is read to the dataset or consumer built from it.
  • raw.payments (bronze, raw table)
  • raw.orders (bronze, raw table)
  • stg_payments (silver, staging table)
  • stg_orders (silver, staging table)
  • fct_orders (gold, fact table)
  • agg_daily_revenue (gold, aggregate table)
  • customer_ltv (gold, aggregate table)
  • Revenue dashboard (consumer, Finance)
  • Refunds dashboard (consumer, Support operations)
  • Churn model (consumer, Data science)
  • raw.payments -> stg_payments
  • raw.orders -> stg_orders
  • stg_payments -> fct_orders
  • stg_orders -> fct_orders
  • fct_orders -> agg_daily_revenue
  • fct_orders -> customer_ltv
  • fct_orders -> Refunds dashboard
  • agg_daily_revenue -> Revenue dashboard
  • customer_ltv -> Churn model
  • Raw: raw.payments, raw.orders
  • Staging: stg_payments, stg_orders
  • Curated: fct_orders
  • Serving: agg_daily_revenue, customer_ltv
  • Consumers: Revenue dashboard, Refunds dashboard, Churn model

Blast radius is the set of nodes forward of a change or a failure, together with the people who own them. Walking forward from stg_payments reaches 6 nodes. Half of them are the revenue and refunds dashboards and the churn model; the rest are the internal tables fct_orders and agg_daily_revenue, plus customer_ltv. The count alone misleads, so weight each node by who depends on it: the revenue dashboard that Finance closes the month with outranks 3 internal tables.

Column-level lineage narrows the radius

Table-level lineage says fct_orders reads stg_payments. Column-level lineage says which columns feed which: fct_orders.net_revenue is computed from stg_payments.fee_usd, and of the nodes after fct_orders only agg_daily_revenue reads net_revenue. A change to how fee_usd is rounded therefore alters values in fct_orders and agg_daily_revenue and on the revenue dashboard, 3 nodes in all, and the refunds and churn owners need no warning. Renaming or dropping fee_usd is different, because the build of fct_orders fails, everything after it goes stale, and the radius is back to all 6.

Where lineage comes from

Capture methodHow it worksWhat it misses
Parse pipeline codeRead each task's SQL and record the tables in its `FROM` and `JOIN` clausesDashboards, notebooks and ad hoc queries that read tables directly
Parse query logsRead every query the warehouse ran over a window, from any clientReaders that did not run during the window
Declared task inputs and outputsEach orchestrator task lists what it reads and writesAnything someone forgot to declare

Code parsing alone never sees the analyst whose notebook reads fct_orders every Monday, and that analyst is the person who gets surprised. Merging code lineage with 30 days of query logs covers most real readers; declared inputs fill the gaps where SQL is assembled at runtime and cannot be parsed.

Root cause: walk back until the inputs are healthy

On the morning of 2026-10-21, Finance reports the revenue dashboard showing 2026-10-20 revenue 38% below its 7-day average. Backward lineage from the dashboard lists the nodes to check; a row count on each for that date shows its health.

NodeRows for 2026-10-207-day averageStatus
fct_orders255,000410,000Low
stg_payments254,600408,900Low
stg_orders411,200409,800Normal
raw.payments409,700408,300Normal
raw.orders411,500410,100Normal

The origin is the most upstream node that is unhealthy while every node it reads is healthy. fct_orders is low, but stg_payments, one of its inputs, is also low, so the fault entered earlier. stg_payments is low while its only input, raw.payments, is normal: the rows disappeared inside stg_payments. Its last deploy on 2026-10-19 added WHERE currency = 'USD'. A payment processor onboarded that week sends 'usd' in lowercase. The fix lands in stg_payments, and the backfill rebuilds it and every node forward of it, in lineage order.

A Monday alert says customer_ltv has 0 rows for 2026-10-25. Every node upstream of it, from fct_orders back to both raw tables, has normal row counts for that date. Which reading of the lineage is correct?

About this lesson

This section is part of the Pipeline Operations: Intermediate lesson on DataDriven, the home of data engineering. Lessons cover SQL, Python, Spark, data modeling and pipeline architecture, and each section pairs its explanation with worked examples and practice you run as you go.