forked from MarquezProject/marquez
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migration script and DAO updates for job renaming and symlinking (Mar…
…quezProject#1947) * Add migration script to create job symlink target Signed-off-by: Michael Collado <collado.mike@gmail.com> * Update JobDao to find job symlink targets and add tests Signed-off-by: Michael Collado <collado.mike@gmail.com> * Update RunDao to fetch runs for jobs with symlinks Signed-off-by: Michael Collado <collado.mike@gmail.com> * Update changelog Signed-off-by: Michael Collado <collado.mike@gmail.com>
- Loading branch information
1 parent
35e0a45
commit 2c4a4db
Showing
12 changed files
with
502 additions
and
147 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
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
4 changes: 4 additions & 0 deletions
4
api/src/main/resources/marquez/db/migration/V42__add_job_symlink_target.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,4 @@ | ||
ALTER TABLE jobs ADD COLUMN symlink_target_uuid uuid REFERENCES jobs (uuid); | ||
CREATE INDEX jobs_symlinks ON jobs (symlink_target_uuid) | ||
INCLUDE (uuid, namespace_name, name) | ||
WHERE symlink_target_uuid IS NOT NULL; |
Oops, something went wrong.