From 10720400fd1fbdaa11a10d13188999ee16990650 Mon Sep 17 00:00:00 2001 From: Tudor Date: Fri, 27 Mar 2026 17:34:34 +0000 Subject: [PATCH] fix(stg_ofsted_inspections): parse DD/MM/YYYY date format from Ofsted CSV Co-Authored-By: Claude Sonnet 4.6 --- pipeline/transform/models/staging/stg_ofsted_inspections.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline/transform/models/staging/stg_ofsted_inspections.sql b/pipeline/transform/models/staging/stg_ofsted_inspections.sql index 54eae5c..d19cc1c 100644 --- a/pipeline/transform/models/staging/stg_ofsted_inspections.sql +++ b/pipeline/transform/models/staging/stg_ofsted_inspections.sql @@ -8,7 +8,7 @@ with source as ( renamed as ( select cast(urn as integer) as urn, - nullif(trim(inspection_date), 'NULL')::date as inspection_date, + to_date(nullif(trim(inspection_date), 'NULL'), 'DD/MM/YYYY') as inspection_date, inspection_type, event_type_grouping as framework,