Data Provenance: Trace Sources and Transformations
Data provenance records how an analytical result was produced from its sources and processing steps. Learn how provenance relates to lineage, metadata, and logs, how to trace a business metric from inputs to a report, and what provenance cannot prove.
Data provenance is information that shows where data came from, which activities created or changed it, and which people, organizations, or software took part. If a dashboard’s revenue figure is questioned, provenance can help trace it to source transactions, exchange-rate data, transformation rules, run times, and the final metric. Provenance does not guarantee that a number is true; it shows what to inspect and what may need to be recalculated.
What is the difference between provenance and other data information?
Data provenance connects sources, transformations, and results. In practice, “data provenance” and “data lineage” are often used with overlapping meanings. In this article, lineage mainly means the path by which data moves and is transformed across systems. Provenance is the broader record, adding such details as origins, versions, times, responsible parties, and evidence. Organizations define these terms differently, so agree on local definitions before a project begins.
Metadata describes data with attributes such as its name, columns, format, and owner. Execution logs may show when a job started and ended. Quality checks report conditions such as missing-value rates or range violations. These records can be connected to provenance, but on their own they may not answer, “Which inputs and rules produced this value in the report?” Provenance links these pieces to the data artifacts and processing activities involved.
The W3C PROV model describes the things being traced as entities, the activities that read or change data and create results, and agents responsible for or involved in those activities. In analytics, an entity might be a file, table, field, model, or report; an activity might be ingestion, joining, filtering, aggregation, or publication. Relationships such as used, generated, derived from, attributed to, and time connect them into a record of how an output came to exist. W3C PROV Primer — https://www.w3.org/TR/prov-primer/ · W3C PROV data model — https://www.w3.org/TR/prov-dm/
Example: trace a revenue metric back to its sources
The following is a hypothetical example to explain provenance, not data from a real company or measurement. Suppose a weekly report says, “Domestic online net revenue increased 8% from the prior week.” That sentence alone does not tell us whether the week boundaries match, how currency conversion worked, how cancellations and refunds were handled, or when the data was refreshed.
Order source snapshot ─┐
├─[daily revenue job: run ID, code version, rules]─> daily revenue table ─┐
Exchange-rate snapshot ┘ ├─[weekly KPI job]─> dashboard card
└─> report statementWith a readable provenance record, an analyst can check whether the two week ranges match; how refunds were removed from net revenue; whether the exchange-rate date is appropriate; whether the job completed; and whether the dashboard uses the same table and filters. Recording only an input filename makes it hard to reproduce a calculation after that file changes. Where possible, record an identifier for a specific data state, such as a version, snapshot time, partition date, immutable ID, or verified checksum.
How to record provenance in practice
Start by choosing the question and the unit you need to trace. An incident review may ask which sources affected a dashboard; a reproducibility task may ask how one field was derived. Table-level lineage may be enough to show dependencies between tables. Extend to field-level lineage when the origin of a particular column matters, for example for a sensitive or financial metric.
Give data and jobs stable identifiers, and define what counts as a version. A table with the same name can exist in different databases or environments, so combine its name with a namespace or other context. For mutable tables, record more than “the current table”: include the run-time snapshot or partition, schema version, and refresh time. W3C PROV describes how to link version-specific entities and record time, generation, and use.
For each processing activity, connect the inputs actually read to the outputs it produced. Recording a run ID, job name, start and end time, status, code or query version, key parameters, schema, and responsible actor helps distinguish “this job exists” from “this execution used these inputs.” Also distinguish declared dependencies from dependencies observed during execution. OpenLineage separates job metadata from run events and supports recording data flow observed in a run. OpenLineage Getting Started — https://openlineage.io/getting-started/
Check that recorded relationships match the actual transformation. If a job reads two input tables and writes two outputs, that does not mean every input contributes to every output. OpenLineage’s explicit lineage relationships can identify the actual sources for each target. For field-level lineage, avoid connecting every input column to every output column by default; describe direct copying, calculations, branching, or aggregation where that detail is known. OpenLineage Lineage Job Facet — https://openlineage.io/docs/spec/facets/job-facets/lineage/ · OpenLineage Lineage Dataset Facet — https://openlineage.io/docs/spec/facets/dataset-facets/lineage/
Finally, verify that the record can answer real questions. Start from a dashboard value and trace backward to its sources; then imagine changing one source and trace forward to affected metrics and reports. Re-run a representative calculation using the recorded input snapshot, code version, and parameters, or at least compare its output independently. A trace can stop if the record exists but the analyst lacks permission, the source was deleted, or a job never emitted lineage events.
How much detail do you need?
| Question | A useful starting record | When to add detail |
|---|---|---|
| Where did this dashboard come from? | Table-level links among reports, tables, and jobs | When you need to trace a particular filter or calculated field |
| Can we recalculate this value? | Input version, run ID, code/query version, parameters, and time | When audit or finance review also requires the procedure and approver |
| What might break if a source changes? | Upstream and downstream dependencies from inputs to outputs | When you need to know how one field affects a metric or model |
| How much should we trust the result? | Origin, refresh time, transformation rules, validation status, and owner | When measurement bias, collection gaps, or quality results must also be assessed |
You do not need to require field-level graphs or permanent retention for every analysis. Match detail to risk and decisions. A useful baseline is the source’s identity, the specific data version, the jobs and transformations actually used, the execution time, and the responsible party. Apply access controls and retention limits to provenance systems too, especially when sources contain personal data. Do not copy secrets or unnecessary personal information into logs.
What provenance does not guarantee
Provenance shows recorded connections; it does not automatically prove that input data is accurate or representative, that a transformation is appropriate, or that a result is correct. A faulty rule can be traced perfectly and still produce a faulty result. Manual edits, emailed files, and temporary notebooks may be missing if they are not captured. A collector can identify jobs incorrectly or merge same-named tables, producing a graph that looks plausible but is wrong.
There is no single level of provenance detail for every use. Research on database query provenance may ask “why did this row appear?” at a much finer level than tracing an analytics pipeline. This article focuses on practical analytics provenance: following sources, jobs, and outputs to support reproducibility and impact analysis. Interpret a trace alongside quality checks, data definitions, sampling, and measurement limits.
A useful provenance system is measured by whether it answers the right questions, not by the size of its graph. Recording sources, transformations, versions, time, and responsibility—and checking those links against actual outputs—helps analysts review dashboard numbers, assess the impact of changes, and reproduce analyses.
References
W3C PROV Primer — https://www.w3.org/TR/prov-primer/
W3C PROV data model — https://www.w3.org/TR/prov-dm/
OpenLineage Getting Started — https://openlineage.io/getting-started/
OpenLineage Lineage Job Facet — https://openlineage.io/docs/spec/facets/job-facets/lineage/
OpenLineage Lineage Dataset Facet — https://openlineage.io/docs/spec/facets/dataset-facets/lineage/