We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f053ecf commit 53b5cf7Copy full SHA for 53b5cf7
1 file changed
api/src/main/resources/marquez/db/migration/V54__lineage_events_created_at_indexed.sql
@@ -1,7 +1,7 @@
1
-- new column will be created with 'null' filled for existing rows
2
ALTER TABLE lineage_events ADD created_at TIMESTAMP WITH TIME ZONE;
3
4
-create index lineage_events_created_at_index on lineage_events (created_at desc);
+create index lineage_events_created_at_index on lineage_events (created_at desc NULLS LAST);
5
6
-- 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.
7
ALTER TABLE lineage_events ALTER COLUMN created_at SET DEFAULT (now() AT TIME ZONE 'UTC')::timestamptz;
0 commit comments