-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove use of Slurm ReqGRES field (#1479)
- Loading branch information
Showing
25 changed files
with
72,072 additions
and
72,286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...tion/etl/etl_sql.d/migrations/9.0.0-9.5.0/mod_shredder/alter-shredded-job-slurm-table.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
-- Drop column from the `shredded_job_slurm` table. This table is not managed | ||
-- by an ETL definition because it contains a key that is currently not | ||
-- supported by the ETL system. | ||
|
||
-- Wrap the ALTER TABLE statement in a prepared statement that conditionally | ||
-- drops the column so that this file can be executed multiple times without | ||
-- causing errors. | ||
SET @statement = ( | ||
SELECT IF( | ||
( | ||
SELECT COUNT(*) | ||
FROM information_schema.columns | ||
WHERE table_schema = '${DESTINATION_SCHEMA}' | ||
AND table_name = 'shredded_job_slurm' | ||
AND column_name = 'req_gres' | ||
) > 0, | ||
'ALTER TABLE `${DESTINATION_SCHEMA}`.`shredded_job_slurm` DROP COLUMN `req_gres`', | ||
'SELECT 1' | ||
) | ||
); | ||
PREPARE dropColumnIfExists FROM @statement; | ||
EXECUTE dropColumnIfExists; | ||
DEALLOCATE PREPARE dropColumnIfExists; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.