-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
materializations: don't persist a spec in the destination system
Validate and Apply request messages have had the last successfully validated/applied specification included with them for a while now. We can use this prior spec, rather than needing to store and retrieve it out of the destination metadata table. This does introduce a tiny difference in behavior, where currently Validate runs against the last successfully Applied (persisted) spec, rather than the last successfully Validate spec. I can't think of any practical difference this would make, and this model has been running successfully with other materializations already, such as Iceberg.
- Loading branch information
1 parent
8a0344d
commit cbd025c
Showing
54 changed files
with
111 additions
and
1,028 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 |
---|---|---|
@@ -1,30 +1,18 @@ | ||
* new materialization: | ||
create meta tables | ||
create resource for collection "key/value" | ||
put spec with version "aVersion" | ||
create resource for ["key_value"] | ||
|
||
* remove required field: | ||
create meta tables | ||
update resource for collection "key/value" [new projections: 0, newly nullable fields: 1, newly delta updates: false] | ||
put spec with version "aVersion" | ||
update resource for ["key_value"] [new projections: 0, newly nullable fields: 1, newly delta updates: false] | ||
|
||
* add required field: | ||
create meta tables | ||
update resource for collection "key/value" [new projections: 1, newly nullable fields: 0, newly delta updates: false] | ||
put spec with version "aVersion" | ||
update resource for ["key_value"] [new projections: 1, newly nullable fields: 0, newly delta updates: false] | ||
|
||
* add binding: | ||
create meta tables | ||
create resource for collection "extra/collection" | ||
put spec with version "aVersion" | ||
create resource for ["extra_collection"] | ||
|
||
* replace binding: | ||
create meta tables | ||
delete resource ["key_value"] | ||
create resource for collection "key/value" | ||
put spec with version "aVersion" | ||
create resource for ["key_value"] | ||
|
||
* field is newly nullable: | ||
create meta tables | ||
update resource for collection "key/value" [new projections: 0, newly nullable fields: 1, newly delta updates: false] | ||
put spec with version "aVersion" | ||
update resource for ["key_value"] [new projections: 0, newly nullable fields: 1, newly delta updates: false] |
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.