From cfc9367bb3f1708adb4babfe913216f77cf7cd82 Mon Sep 17 00:00:00 2001 From: Tudor Date: Tue, 13 Oct 2026 21:28:51 +0100 Subject: [PATCH] fix(dbt): stg_gias_ukprn reads URN as the bigint target-postgres loads (H4) Co-Authored-By: Claude Opus 5.5 --- pipeline/transform/models/staging/stg_gias_ukprn.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pipeline/transform/models/staging/stg_gias_ukprn.sql b/pipeline/transform/models/staging/stg_gias_ukprn.sql index 640aeb8..ed351e3 100644 --- a/pipeline/transform/models/staging/stg_gias_ukprn.sql +++ b/pipeline/transform/models/staging/stg_gias_ukprn.sql @@ -8,4 +8,5 @@ select cast("URN" as integer) as urn, nullif(trim("UKPRN"), '') as ukprn from {{ source('raw', 'gias_establishments') }} -where "URN" ~ '^[0-9]+$' +-- target-postgres types URN as bigint (the tap declares an integer). +where "URN" is not null