We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e7a2b6 commit 50147faCopy full SHA for 50147fa
airflow/include/sql/sparte/macros/ocsge/merge_imper_net_flux_by_admin_level.sql
@@ -6,8 +6,8 @@ SELECT
6
{{ group_by_column }},
7
year_old,
8
year_new,
9
- sum(imper_net_flux_commune.impermeable_surface) as impermeable_surface,
10
- sum(imper_net_flux_commune.desimper_surface) as desimper_surface,
+ sum(imper_net_flux_commune.flux_imper) as flux_imper,
+ sum(imper_net_flux_commune.flux_desimper) as flux_desimper,
11
sum(commune.surface) as surface,
12
array_agg(distinct commune.departement) as departements
13
FROM
@@ -22,7 +22,7 @@ GROUP BY
22
)
23
SELECt
24
*,
25
- impermeable_surface - desimper_surface as imper_net
+ flux_imper - flux_desimper as flux_imper_net
26
FROM without_percent
27
28
0 commit comments