Skip to content

Commit

Permalink
Fixing ATLASPANDA-979: New column OUTPUTFILETYPE in jobs tables (post…
Browse files Browse the repository at this point in the history
…gres)
  • Loading branch information
EdwardKaravakis committed May 22, 2024
1 parent ea7eb5b commit db8a249
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion schema/postgres/sqls/pg_PANDAARCH_TABLE.sql
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ CREATE TABLE jobsarchived (
meancorecount decimal(8,2),
gco2_regional decimal(10,2),
gco2_global decimal(10,2),
cpu_architecture_level varchar(20)
cpu_architecture_level varchar(20),
outputfiletype varchar(32)
) ;
COMMENT ON COLUMN jobsarchived.avgpss IS E'Average PSS in the job';
COMMENT ON COLUMN jobsarchived.avgrss IS E'Average RSS in the job';
Expand Down
12 changes: 8 additions & 4 deletions schema/postgres/sqls/pg_PANDA_TABLE.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,8 @@ CREATE TABLE jobsactive4 (
meancorecount decimal(8,2),
gco2_regional decimal(10,2),
gco2_global decimal(10,2),
cpu_architecture_level varchar(20)
cpu_architecture_level varchar(20),
outputfiletype varchar(32),

This comment has been minimized.

Copy link
@CrankOne

CrankOne May 26, 2024

Contributor

This trailing comma causes syntax error here.

This comment has been minimized.

Copy link
@EdwardKaravakis

EdwardKaravakis May 26, 2024

Author Member

Indeed, sorry I didn't see it.. will fix it right now

This comment has been minimized.

Copy link
@EdwardKaravakis

EdwardKaravakis May 26, 2024

Author Member

get the 0.0.28 panda-database version, issue is fixed - thanks!

) ;
COMMENT ON TABLE jobsactive4 IS E'Table for hosting all PanDA jobs that are in active running mode. All timestamp and date type columns are in UTC';
COMMENT ON COLUMN jobsactive4.assignedpriority IS E'defined priority value';
Expand Down Expand Up @@ -1492,7 +1493,8 @@ CREATE TABLE jobsarchived4 (
meancorecount decimal(8,2),
gco2_regional decimal(10,2),
gco2_global decimal(10,2),
cpu_architecture_level varchar(20)
cpu_architecture_level varchar(20),
outputfiletype varchar(32)
) PARTITION BY RANGE (modificationtime) ;
COMMENT ON TABLE jobsarchived4 IS E'Table for hosting all PanDA jobs that are in finished, failed or cancelled status. Data is regularly copied to an archive table in ATLAS_PANDAARCH schema. Data retention of the JOBSARCHIVED4 table is defined to be 3 days (can be changed if necessary). All timestamp and date type columns are in UTC ';
COMMENT ON COLUMN jobsarchived4.assignedpriority IS E'defined priority value';
Expand Down Expand Up @@ -1791,7 +1793,8 @@ CREATE TABLE jobsdefined4 (
meancorecount decimal(8,2),
gco2_regional decimal(10,2),
gco2_global decimal(10,2),
cpu_architecture_level varchar(20)
cpu_architecture_level varchar(20),
outputfiletype varchar(32)
) ;
COMMENT ON COLUMN jobsdefined4.assignedpriority IS E'defined priority value';
COMMENT ON COLUMN jobsdefined4.atlasrelease IS E'Release required to run the job';
Expand Down Expand Up @@ -2086,7 +2089,8 @@ CREATE TABLE jobswaiting4 (
meancorecount decimal(8,2),
gco2_regional decimal(10,2),
gco2_global decimal(10,2),
cpu_architecture_level varchar(20)
cpu_architecture_level varchar(20),
outputfiletype varchar(32)
) ;
COMMENT ON TABLE jobswaiting4 IS E'Table for hosting all PanDA jobs that are in waiting state. The columns (and their description) are the same as the ones in JOBSACTIVE4 table. All timestamp and date type columns are in UTC';
COMMENT ON COLUMN jobswaiting4.assignedpriority IS E'defined priority value';
Expand Down
2 changes: 1 addition & 1 deletion schema/postgres/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.16
0.0.17

0 comments on commit db8a249

Please sign in to comment.