Skip to content

Commit

Permalink
Natinf fix oracle query (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
thoomasbro authored Jan 25, 2023
2 parents 1593927 + 385e7eb commit 94c148d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion datascience/src/pipeline/queries/cross/facade_areas.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SELECT
facade,
ST_SubDivide(geometry) AS geometry
st_multi(ST_SubDivide(geometry)) AS geometry
FROM prod.facade_areas
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
SELECT
id,
md5(
COALESCE(geom::text, '') ||
COALESCE(entity_name::text, '') ||
COALESCE(url::text, '') ||
COALESCE(layer_name::text, '') ||
Expand All @@ -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;
AND "Thematique" IS NOT NULL
3 changes: 1 addition & 2 deletions datascience/src/pipeline/queries/fmc/natinf.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;

WHERE t.row_num = 1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SELECT
id,
row_hash AS monitorenv_row_hash
FROM public.regulations_cacem;
FROM public.regulations_cacem

0 comments on commit 94c148d

Please sign in to comment.