Skip to content

Commit a48eda0

Browse files
committed
generator single subset changed form mview to table
1 parent dbf52d3 commit a48eda0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

dataprocessing/sql_snippets/ego_dp_powerflow_assignment_generator.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Generators which were assigned to a specific substation prior to this script need to be transformed to a data structure
33
suitable for powerflow calculation with tool developed and used in the open_eGo project. The following script transforms
44
data from the powerplant mviews and adds some parameters according to the characteristics of the generators.
@@ -413,7 +413,7 @@ UPDATE model_draft.ego_grid_pf_hv_generator
413413
-- scenario log (project,version,io,schema_name,table_name,script_name,comment)
414414
SELECT scenario_log('eGo_DP', 'v0.4.2','output','model_draft','ego_grid_pf_hv_generator','ego_dp_powerflow_assignment_generator.sql',' ');
415415

416-
CREATE MATERIALIZED VIEW model_draft.ego_supply_aggr_weather_mview
416+
CREATE TABLE model_draft.ego_supply_aggr_weather
417417
AS
418418
(WITH w_sub AS (
419419
SELECT DISTINCT
@@ -432,7 +432,7 @@ AS
432432
FROM
433433
w_sub);
434434

435-
ALTER MATERIALIZED VIEW VIEW model_draft.ego_supply_aggr_weather_mview OWNER TO oeuser;
435+
ALTER TABLE model_draft.ego_supply_aggr_weather OWNER TO oeuser;
436436

437437
-- scenario log (project,version,io,schema_name,table_name,script_name,comment)
438-
SELECT scenario_log('eGo_DP', 'v0.4.2','output','model_draft','ego_supply_aggr_weather_mview','ego_dp_powerflow_assignment_generator.sql',' ');
438+
SELECT scenario_log('eGo_DP', 'v0.4.2','output','model_draft','ego_supply_aggr_weather','ego_dp_powerflow_assignment_generator.sql',' ');

0 commit comments

Comments
 (0)