Worked example · data lineage
Where does that number on the Lloyd's return come from?
When a regulator, an auditor or an underwriter asks that question, the answer should take seconds, not a week of reading SQL. This is a small dbt project for a fictional London Market insurer, shown the way dbt Docs shows lineage. Click a model to see its upstream and downstream dependencies, or click a column to trace it back to source.
Illustration only. The project, models, tests and results are fictional. Model names follow common dbt conventions; no client's project is reproduced.
Swipe sideways to see the whole graph, from source systems to the Lloyd's return.
Why lineage matters in insurance data
Answers in seconds
Click "Gross written premium by LoB" on the Lloyd's return and you can see it comes from section premium in the policy system, converted at the month-end FX rate and mapped to a line of business through the Lloyd's risk code list. That's three source tables and five models, documented in one place.
Tests where the risk is
Keys are tested for uniqueness, rates for completeness, and every fact is tested for a matching policy. The failing test here is the useful kind: three TPA claims quote a policy reference the policy system doesn't have yet. The test catches it before it reaches the return.
Change with confidence
Before changing the FX model, the downstream view shows every mart, return and dashboard it feeds. Impact analysis is a click, not a meeting.
Documentation people actually use
Descriptions live next to the code in the dbt project, so they're updated in the same change as the SQL. Writing them, and the tests behind them, is where a data analyst adds most value to a data platform.