fix(dbt): schema-qualify PostGIS functions in dim_location
Some checks failed
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 33s
Build and Push Docker Images / Build Integrator (push) Has been cancelled
Build and Push Docker Images / Build Kestra Init (push) Has been cancelled
Build and Push Docker Images / Build Pipeline (Meltano + dbt + Airflow) (push) Has been cancelled
Build and Push Docker Images / Trigger Portainer Update (push) Has been cancelled
Build and Push Docker Images / Build Frontend (Next.js) (push) Has been cancelled

PostGIS extension lives in public schema; marts schema can't resolve
unqualified ST_MakePoint/ST_Transform calls.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-26 21:45:03 +00:00
parent 28ba2fd0a6
commit b7cc01f26f

View File

@@ -17,7 +17,7 @@ select
s.northing, s.northing,
case case
when s.easting is not null and s.northing is not null 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 else null
end as geom end as geom
from {{ ref('stg_gias_establishments') }} s from {{ ref('stg_gias_establishments') }} s