diff --git a/airflow/include/sql/sparte/models/for_app/for_app_artificialarea.sql b/airflow/include/sql/sparte/models/for_app/for_app_artificialarea.sql index 3d6785713..e8e2d6974 100644 --- a/airflow/include/sql/sparte/models/for_app/for_app_artificialarea.sql +++ b/airflow/include/sql/sparte/models/for_app/for_app_artificialarea.sql @@ -12,6 +12,6 @@ SELECT departement, commune_code AS city, surface / 10000 AS surface, - {{ make_valid_multipolygon('ST_Transform(geom, 4326)') }} as mpoly + ST_MakeValid({{ make_valid_multipolygon('ST_Transform(geom, 4326)') }}) as mpoly FROM {{ ref('artificial_commune') }}