Lineage & cataloging

Column-level lineage (OpenLineage, dbt docs), impact analysis before dropping a column, ownership and discovery via catalogs (DataHub/Amundsen). What "governance" concretely means day to day.

About 23 min read3-question knowledge check

The mental model

Data lineage is the "what breaks if I touch this?" map for your warehouse, and a catalog is the phone book that says whose problem it is. Every data platform eventually hits the same wall: someone wants to drop a column, rename a table, or change a type, and no one can answer "who depends on this?" without a week of Slack archaeology. Lineage answers that question mechanically — it is the directed graph of this column was computed from those columns, traced from raw source all the way to the dashboard tile a VP looks at.

The analogy that sticks: lineage is the **dependency graph of a build system, but for data instead of code.** In a codebase, "find all callers" before you change a function signature is a one-click operation because the compiler knows the call graph. Data platforms historically had no compiler-level view — a column was read by SQL in fifty places, some in dbt, some in a notebook, some in a BI tool, and none of it linked. Lineage rebuilds that call graph so "find all downstream consumers of orders.discount" becomes mechanical instead of tribal. The catalog adds the human layer on top: what this table means, who owns it, whether it is certified, how fresh it is, and where to find it — the search-and-discovery front door so analysts stop rebuilding tables that already exist.

The WHY: **the two operations that actually matter are impact analysis (downstream: what breaks if I change this) and root-cause analysis (upstream: where did this wrong number come from).** Lineage is the same graph traversed in two directions. Everything else — certification badges, ownership, freshness on the catalog page — exists to make those two traversals trustworthy and actionable. Column-level lineage is the ambition because table-level is often too coarse: "the orders table feeds this mart" is not enough when you need "the tax_amount column, specifically, feeds the finance report."

The full lesson continues with 15 more sections
  • Deep dive
  • Internal architecture
  • Real-world use cases
  • Best practices
  • Common mistakes
  • Performance
  • Security
  • Production troubleshooting
  • Advantages & disadvantages
  • Alternatives
  • Interview expectations
  • Interview questions
  • Facts to remember
  • Cheat sheet
  • Quick revision