Glossary · Data observability and quality
What is Column-level lineage?
Column-level lineage traces data between individual columns rather than whole tables: which source columns feed each target column and how. It shows exactly what breaks when a column changes and which upstream field caused a wrong value, at a much finer grain than table lineage.
Why table lineage is not enough
Table-level data lineage says that marts.revenue depends on raw.orders. That is often too coarse:
- Impact analysis. Before dropping
raw.orders.discount_code, you need the downstream columns, models and dashboards that use that column, not every asset that touches the table. - Root cause. When
net_revenueis wrong, column lineage narrows the search to the columns it is computed from. - Compliance. Tracking where a column with personal data (PII) is copied or derived requires column-level links.
- Noise. A schema change to an unused column should not page anyone.
How column lineage is derived
Column lineage comes from parsing the SQL of each job and resolving which input columns contribute to each output column, through aliases, CTEs, joins, aggregations and SELECT *. For example:
CREATE OR REPLACE TABLE marts.customer_revenue AS
SELECT
c.customer_id, -- exact copy of crm.customers.customer_id
c.country, -- exact copy of crm.customers.country
SUM(o.amount - o.discount) AS net_revenue -- derived from orders.amount and orders.discount
FROM crm.customers AS c
JOIN raw.orders AS o USING (customer_id)
GROUP BY c.customer_id, c.country;
net_revenue depends on amount and discount; customer_id in the join also affects which rows appear, a dependency that some tools record and others ignore. Knowledge Catalog labels links as Exact copy when values are copied and Other for every other dependency.
Options on BigQuery
- Knowledge Catalog data lineage collects column-level lineage automatically for supported query jobs once the Data Lineage API is enabled, keeps 30 days of history and charges for processing and metadata storage. Note the gaps: no column lineage for load jobs, routines and scripts, Dataform incremental tables, nested
STRUCTor JSON fields, or jobs producing more than 1,500 column links. - Transformation tools can derive column lineage for their own models from compiled SQL.
- Log-based tools parse every job from audit logs across projects; Masthead builds automatic cross-project column-level lineage this way, without reading data.
Pitfalls
- Treating a missing link as no dependency: coverage gaps look exactly like independence.
- Ignoring filter and join columns, which change results without appearing in the output.
- Losing history on table swaps (
ALTER TABLE RENAMEpatterns), common in ETL. - Stopping at the warehouse: the last hop to dashboards and semantic models is where impact is felt.
FAQ
Does BigQuery have column-level lineage?
Through Knowledge Catalog (formerly Dataplex Universal Catalog). With the Data Lineage API enabled, it collects column-level lineage for BigQuery CREATE TABLE, CREATE TABLE COPY, INSERT, UPDATE, MERGE, DELETE and SELECT jobs that write to a destination table, labelling each link as Exact copy or Other.
What are the limits of Knowledge Catalog column-level lineage?
It is not collected for load jobs or routines (including multi-statement scripts and Dataform incremental tables), only covers top-level columns, falls back to table level when a job creates more than 1,500 column links, and is not carried over when tables are renamed with ALTER TABLE RENAME.
