From 28ba2fd0a67d2eca53722c4995a055bcd4df2521 Mon Sep 17 00:00:00 2001 From: Tudor Date: Thu, 26 Mar 2026 21:29:16 +0000 Subject: [PATCH] fix(dbt): cast easting/northing to double precision for ST_MakePoint Co-Authored-By: Claude Opus 4.6 --- pipeline/transform/models/marts/dim_location.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline/transform/models/marts/dim_location.sql b/pipeline/transform/models/marts/dim_location.sql index 5993719..11fc951 100644 --- a/pipeline/transform/models/marts/dim_location.sql +++ b/pipeline/transform/models/marts/dim_location.sql @@ -17,7 +17,7 @@ select s.northing, case when s.easting is not null and s.northing is not null - then ST_Transform(ST_SetSRID(ST_MakePoint(s.easting, s.northing), 27700), 4326) + then ST_Transform(ST_SetSRID(ST_MakePoint(s.easting::double precision, s.northing::double precision), 27700), 4326) else null end as geom from {{ ref('stg_gias_establishments') }} s