From b7cc01f26f847d872c4bc9661cd3bba0848f9c1f Mon Sep 17 00:00:00 2001 From: Tudor Date: Thu, 26 Mar 2026 21:45:03 +0000 Subject: [PATCH] fix(dbt): schema-qualify PostGIS functions in dim_location PostGIS extension lives in public schema; marts schema can't resolve unqualified ST_MakePoint/ST_Transform calls. 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 11fc951..9a74ce2 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::double precision, s.northing::double precision), 27700), 4326) + then public.ST_Transform(public.ST_SetSRID(public.ST_MakePoint(s.easting::double precision, s.northing::double precision), 27700), 4326) else null end as geom from {{ ref('stg_gias_establishments') }} s