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,