From d25e333826a2cbda681fc80ecb39898273acdd05 Mon Sep 17 00:00:00 2001 From: Tudor Date: Thu, 26 Mar 2026 20:59:29 +0000 Subject: [PATCH] fix(dbt): remove invalid relationship test on map_school_lineage Lineage map includes predecessor URNs for closed schools, which are correctly excluded from dim_school (status = 'Open'). Co-Authored-By: Claude Opus 4.6 --- pipeline/transform/models/marts/_marts_schema.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pipeline/transform/models/marts/_marts_schema.yml b/pipeline/transform/models/marts/_marts_schema.yml index 91395f4..b5b9314 100644 --- a/pipeline/transform/models/marts/_marts_schema.yml +++ b/pipeline/transform/models/marts/_marts_schema.yml @@ -32,11 +32,7 @@ models: description: Predecessor/successor lineage map columns: - name: urn - tests: - - not_null - - relationships: - to: ref('dim_school') - field: urn + tests: [not_null] - name: fact_ks2_performance description: KS2 attainment — one row per URN per year