-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
60 changed files
with
765 additions
and
379 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
API_PORT=5000 | ||
API_ADMIN_PORT=5001 | ||
WEB_PORT=3000 | ||
TAG=0.28.0 | ||
TAG=0.29.0 |
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
28 changes: 27 additions & 1 deletion
28
api/src/main/resources/marquez/db/migration/V52__alter_dataset_symlinks.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 |
---|---|---|
@@ -1,2 +1,28 @@ | ||
/* SPDX-License-Identifier: Apache-2.0 */ | ||
ALTER TABLE dataset_symlinks ALTER COLUMN name TYPE VARCHAR; | ||
|
||
DO | ||
$$ | ||
DECLARE | ||
datasets_view_exists boolean; | ||
datasets_view_definition text; | ||
BEGIN | ||
SELECT EXISTS ( | ||
SELECT * FROM information_schema.views | ||
WHERE table_schema='public' AND table_name='datasets_view' | ||
) INTO datasets_view_exists; | ||
|
||
IF datasets_view_exists THEN | ||
-- Altering is not allowed when the column is being used from views. So here, | ||
-- we temporarily drop the view before altering and recreate it. | ||
SELECT view_definition FROM information_schema.views | ||
WHERE table_schema='public' AND table_name='datasets_view' | ||
INTO datasets_view_definition; | ||
|
||
DROP VIEW datasets_view; | ||
ALTER TABLE dataset_symlinks ALTER COLUMN name TYPE VARCHAR; | ||
EXECUTE format('CREATE VIEW datasets_view AS %s', datasets_view_definition); | ||
ELSE | ||
ALTER TABLE dataset_symlinks ALTER COLUMN name TYPE VARCHAR; | ||
END IF; | ||
END | ||
$$ LANGUAGE plpgsql; |
7 changes: 7 additions & 0 deletions
7
api/src/main/resources/marquez/db/migration/V54__lineage_events_created_at_indexed.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,7 @@ | ||
-- new column will be created with 'null' filled for existing rows | ||
ALTER TABLE lineage_events ADD created_at TIMESTAMP WITH TIME ZONE; | ||
|
||
create index lineage_events_created_at_index on lineage_events (created_at desc NULLS LAST); | ||
|
||
-- The new default set to UTC now() will only apply in subsequent INSERT or UPDATE commands; it does not cause rows already in the table to change. | ||
ALTER TABLE lineage_events ALTER COLUMN created_at SET DEFAULT (now() AT TIME ZONE 'UTC')::timestamptz; |
Oops, something went wrong.