diff --git a/datascience/src/pipeline/queries/cross/facade_areas.sql b/datascience/src/pipeline/queries/cross/facade_areas.sql index c1ed576d80..ec22049784 100644 --- a/datascience/src/pipeline/queries/cross/facade_areas.sql +++ b/datascience/src/pipeline/queries/cross/facade_areas.sql @@ -1,4 +1,4 @@ SELECT facade, - ST_SubDivide(geometry) AS geometry + st_multi(ST_SubDivide(geometry)) AS geometry FROM prod.facade_areas \ No newline at end of file diff --git a/datascience/src/pipeline/queries/cross/regulations_hashes.sql b/datascience/src/pipeline/queries/cross/regulations_hashes.sql index 703c143e13..e7fe410ff9 100644 --- a/datascience/src/pipeline/queries/cross/regulations_hashes.sql +++ b/datascience/src/pipeline/queries/cross/regulations_hashes.sql @@ -1,6 +1,7 @@ SELECT id, md5( + COALESCE(geom::text, '') || COALESCE(entity_name::text, '') || COALESCE(url::text, '') || COALESCE(layer_name::text, '') || @@ -26,4 +27,4 @@ WHERE geom IS NOT NULL AND entity_name IS NOT NULL AND layer_name IS NOT NULL - AND "Thematique" IS NOT NULL; \ No newline at end of file + AND "Thematique" IS NOT NULL \ No newline at end of file diff --git a/datascience/src/pipeline/queries/fmc/natinf.sql b/datascience/src/pipeline/queries/fmc/natinf.sql index f3d31a4a99..658d28afe3 100644 --- a/datascience/src/pipeline/queries/fmc/natinf.sql +++ b/datascience/src/pipeline/queries/fmc/natinf.sql @@ -16,5 +16,4 @@ SELECT id, natinf_code, regulation, infraction_category, infraction FROM natinfs order by natinf_code, regulation ) t - WHERE t.row_num = 1; - \ No newline at end of file + WHERE t.row_num = 1 \ No newline at end of file diff --git a/datascience/src/pipeline/queries/monitorenv/regulations_hashes.sql b/datascience/src/pipeline/queries/monitorenv/regulations_hashes.sql index db3f19845c..429111d51c 100644 --- a/datascience/src/pipeline/queries/monitorenv/regulations_hashes.sql +++ b/datascience/src/pipeline/queries/monitorenv/regulations_hashes.sql @@ -1,4 +1,4 @@ SELECT id, row_hash AS monitorenv_row_hash -FROM public.regulations_cacem; \ No newline at end of file +FROM public.regulations_cacem \ No newline at end of file