File tree Expand file tree Collapse file tree
dataprocessing/sql_snippets Expand file tree Collapse file tree Original file line number Diff line number Diff 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
4040ALTER 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
9595ALTER MATERIALIZED VIEW model_draft .ego_supply_conv_powerplant_ego100_mview
You can’t perform that action at this time.
0 commit comments