Resources

The Importance of Data Lineage in Ensuring Accuracy and Regulatory Compliance

The Importance of Data Lineage in Ensuring Accuracy and Regulatory Compliance

When a regulator or a CFO asks where a number came from, most teams answer with a meeting. Data lineage replaces the meeting with a map: what data lineage is in practice is a record of every source, transformation and report a value passed through. It does not make data correct. It makes errors findable, which is half the battle in accuracy work and most of the battle in audits.

Table-level vs column-level lineage

Table-level lineage shows that the monthly revenue report depends on the orders table and the refunds table. Column-level lineage shows that one field in the report is orders.amount minus refunds.amount, after a currency conversion. The first tells you where to look. The second tells you what changed.

Column-level lineage: orders.amount and refunds.amount feed a transformation that produces the monthly_revenue field in a report

LevelAnswersTypical gap
TableWhich datasets feed this report?Cannot show which field broke
ColumnHow was this value calculated?Harder to capture, especially in custom code

Most teams start at table level because tools produce it almost for free. Compliance questions, though, usually land at column level. Someone wants to know which systems hold a customer’s email address, not which tables. Custom code is the usual blind spot, because a Python script that reshapes data rarely reports what it did. Parsers can read SQL and recover most of it. Anything else needs the job itself to emit events, or a person to document it, and the second option decays.

Trace a bad number back to its source

The everyday use is debugging. A figure looks wrong, and the path back runs like this:

  1. Open the report or dashboard where the number appears
  2. List the datasets and transformations it reads from
  3. Check each step against the one before it until the values stop matching
  4. Fix the step that changed the value, then re-run everything downstream

Without lineage, step two is a guessing game played over chat, and it takes hours. With it, the list is one click away.

Collecting the records by hand does not scale past a handful of pipelines. OpenLineage, an open standard under the LF AI and Data Foundation, defines how jobs report what they read and wrote, and it has integrations for Airflow, Spark and dbt. That means lineage can be captured while pipelines run instead of being drawn on a whiteboard that goes stale in a month.

I’d skip an enterprise catalog until you can say who will keep the metadata clean.

Audit trail vs lineage

They overlap, but they do different jobs. An audit trail records who accessed or changed data and when. Lineage records where the data came from and how it was transformed. Regulators ask for both, in different questions.

RuleWhat it asks for
GDPR, Article 30Records of processing activities, including what personal data is held and where it goes
BCBS 239Banks must be able to aggregate and trace risk data accurately

Lineage does not make a company compliant on its own, since it records facts and says nothing about whether the processing is lawful. But it answers the “where does this personal data go” question in minutes, which is the one that slows most GDPR requests.

Change gets less scary.

When you know which reports depend on a table, retiring or renaming it becomes a planned task and not a gamble, which is the kind of long-term operational growth work that otherwise stalls because nobody dares touch the old pipelines.

A rename in an upstream table that nobody told the report owners about is a classic way to break a dashboard.

Name an owner

Every dataset needs one person who answers for it. Lineage without owners is a map nobody maintains.

Bogdan Sandu

Stay sharp. Ship better code.

Every week: one curated article, one tool worth knowing, one tip you can use tomorrow. No noise, no padding.