Operation
Data Lineage (Data Provenance)
What is Data Lineage?
Data lineage involves tracking data from its source through to the transformations it may undergo on the way to its destination. Data lineage is a process that is initialised as soon as data enters a data system, and it encompasses the manipulations (such as extractions or queries) that precede it, as well as the final result. It creates a link between single or multiple sources and target entities within a data warehouse, thereby enabling traceability. For this reason, it is of crucial importance for data governance.
Data lineage can be developed within a system that is either active or passive. Active data lineage systems are designed for language-agnostic data operations, such as executing an Apache Beam pipeline or an Apache Spark job on Hadoop. Passive systems are better suited for language-based data operations, as they support SQL.
Passive systems are ideal for data warehouses like BigQuery. Data lineage systems act as repositories hosting data provenance records and providing insights into these records through a visual interface or an API. Such systems also enable the automatic extraction of data from the warehouse. GCP, a platform that processes vast amounts of data, requires data engineering and analytics to manage this data. It is an integral component of data engineering and analytics on GCP. Why is it so essential for these two processes, then?
Why is Data Lineage Important for Data Engineering and Analytics on GCP?
When performing analytics on GCP, data lineage enables easy detection of the root cause of data inconsistencies within a system or across multiple systems. For instance, suppose BigQuery data indicates that a specific customer qualifies for a committed use discount, while Cloud Storage data shows that the same customer is still on a free trial for a Compute Engine service. This provides clear visibility into the data pipeline from this output back to the source. Consequently, you can perform a root cause analysis and identify the origin of the inconsistency, enabling full traceability.
By facilitating traceability, it becomes possible to enforce data access policies across the warehouse. For example, because a passive data lineage system supports SQL, ZetaSQL can be used to define the narratives determining who is permitted to access specific data within the data warehouse (BigQuery). This prevents unauthorised data access.
It defines the blueprint for developing serverless Data Pipelines on GCP. Data engineers build data pipelines that chart the data path from ingestion via Cloud Pub/Sub through to storage, output, and subsequent analysis in BigQuery. There are data governance regulations, such as the General Data Protection Regulation (GDPR), with which data platforms must comply. These regulations are applied at various stages of the data pipeline.
In summary, data lineage ensures that data engineering and analytics on GCP adhere to data management and governance rules. These are highly regulated processes, particularly for platforms handling highly sensitive customer data (such as credit card numbers or phone numbers). It also simplifies the correction of errors that may arise during data engineering and analytics, despite the vast volumes of data processed on GCP.



