diff --git a/pipeline/transform/models/marts/dim_location.sql b/pipeline/transform/models/marts/dim_location.sql index 9a74ce2..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 public.ST_Transform(public.ST_SetSRID(public.ST_MakePoint(s.easting::double precision, s.northing::double precision), 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 diff --git a/pipeline/transform/profiles.yml b/pipeline/transform/profiles.yml index 6c573fc..c9ce720 100644 --- a/pipeline/transform/profiles.yml +++ b/pipeline/transform/profiles.yml @@ -19,4 +19,5 @@ school_compare: password: "{{ env_var('PG_PASSWORD') }}" dbname: "{{ env_var('PG_DATABASE') }}" schema: public + search_path: public,staging,intermediate,marts threads: 4