-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
logs schema deltas to catalog as soon as they are read (#842)
Currently stores the following info: ``` CREATE TABLE IF NOT EXISTS peerdb_stats.schema_deltas_audit_log ( id BIGINT PRIMARY KEY GENERATED ALWAYS AS IDENTITY, flow_job_name TEXT NOT NULL, read_timestamp TIMESTAMP DEFAULT now(), workflow_id TEXT NOT NULL, run_id TEXT NOT NULL, delta_info JSONB NOT NULL ); ``` delta_info is the marshaled version of the `RelationRecord`. Store happens in the same function where `RelationMessages` are processed.
- Loading branch information
1 parent
2500b34
commit 6dbdf61
Showing
4 changed files
with
63 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CREATE TABLE IF NOT EXISTS peerdb_stats.schema_deltas_audit_log ( | ||
id BIGINT PRIMARY KEY GENERATED ALWAYS AS IDENTITY, | ||
flow_job_name TEXT NOT NULL, | ||
read_timestamp TIMESTAMP DEFAULT now(), | ||
workflow_id TEXT NOT NULL, | ||
run_id TEXT NOT NULL, | ||
delta_info JSONB NOT NULL | ||
); |