Skip to content

Commit bef92cf

Browse files
author
WolfBunke
authored
Update ego_dp_powerflow_create_pp_mview.sql
1 parent 30bf7a2 commit bef92cf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

dataprocessing/sql_snippets/ego_dp_powerflow_create_pp_mview.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ CREATE MATERIALIZED VIEW model_draft.ego_supply_conv_powerplant_sq_mview AS
1919
SELECT *
2020
FROM model_draft.ego_dp_supply_conv_powerplant
2121
WHERE scenario = 'Status Quo'
22-
AND shutdown IS NULL or shutdown >= 2015
22+
AND (shutdown IS NULL or shutdown >= 2015)
2323
AND capacity > 0
2424
AND preversion = 'v0.3.0';
2525

@@ -34,7 +34,7 @@ CREATE MATERIALIZED VIEW model_draft.ego_supply_conv_powerplant_nep2035_mview AS
3434
WHERE scenario = 'NEP 2035'
3535
AND capacity > 0
3636
AND fuel not in ('hydro', 'run_of_river', 'reservoir')
37-
AND shutdown IS NULL or shutdown >= 2034
37+
AND (shutdown IS NULL or shutdown >= 2034)
3838
AND preversion = 'v0.3.0';
3939

4040
ALTER MATERIALIZED VIEW model_draft.ego_supply_conv_powerplant_nep2035_mview
@@ -89,7 +89,7 @@ CREATE MATERIALIZED VIEW model_draft.ego_supply_conv_powerplant_ego100_mview AS
8989
WHERE scenario in('NEP 2035')
9090
AND fuel = 'pumped_storage'
9191
AND capacity > 0
92-
AND shutdown IS NULL or shutdown >= 2049
92+
AND (shutdown IS NULL or shutdown >= 2049)
9393
AND preversion = 'v0.3.0';
9494

9595
ALTER MATERIALIZED VIEW model_draft.ego_supply_conv_powerplant_ego100_mview

0 commit comments

Comments
 (0)