dbt column level lineage
This project computes the column lineage of the dbt testing project jaffle_shop thanks to SQLGlot.
dbt model
As an example of the lineage, let’s take the model stg_orders and the output column customer_id:
with source as (
select * from {{ ref('raw_orders') }}
),
renamed as (
select
id as order_id,
user_id as customer_id,
order_date,
status
from source
)
select * from renamed
In this model: