-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
materialize-motherduck: formatted string to string migration
- Loading branch information
Showing
4 changed files
with
168 additions
and
0 deletions.
There are no files selected for viewing
75 changes: 75 additions & 0 deletions
75
materialize-motherduck/.snapshots/TestValidateAndApplyMigrations
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,75 @@ | ||
Base Initial Constraints: | ||
{"Field":"_meta/flow_truncated","Type":4,"TypeString":"FIELD_OPTIONAL","Reason":"Metadata fields fields are able to be materialized"} | ||
{"Field":"flow_document","Type":3,"TypeString":"LOCATION_RECOMMENDED","Reason":"The root document should usually be materialized"} | ||
{"Field":"flow_published_at","Type":3,"TypeString":"LOCATION_RECOMMENDED","Reason":"The projection has a single scalar type"} | ||
{"Field":"key","Type":2,"TypeString":"LOCATION_REQUIRED","Reason":"All Locations that are part of the collections key are required"} | ||
{"Field":"multiple","Type":3,"TypeString":"LOCATION_RECOMMENDED","Reason":"This field is able to be materialized"} | ||
{"Field":"nonScalarValue","Type":4,"TypeString":"FIELD_OPTIONAL","Reason":"Object fields may be materialized"} | ||
{"Field":"nullValue","Type":5,"TypeString":"FIELD_FORBIDDEN","Reason":"Cannot materialize a field where the only possible type is 'null'"} | ||
{"Field":"numericString","Type":3,"TypeString":"LOCATION_RECOMMENDED","Reason":"The projection has a single scalar type"} | ||
{"Field":"optional","Type":4,"TypeString":"FIELD_OPTIONAL","Reason":"Object fields may be materialized"} | ||
{"Field":"scalarValue","Type":3,"TypeString":"LOCATION_RECOMMENDED","Reason":"The projection has a single scalar type"} | ||
{"Field":"second_root","Type":3,"TypeString":"LOCATION_RECOMMENDED","Reason":"The root document should usually be materialized"} | ||
|
||
Base Re-validated Constraints: | ||
{"Field":"_meta/flow_truncated","Type":3,"TypeString":"LOCATION_RECOMMENDED","Reason":"This location is part of the current materialization"} | ||
{"Field":"flow_document","Type":3,"TypeString":"LOCATION_RECOMMENDED","Reason":"This location is part of the current materialization"} | ||
{"Field":"flow_published_at","Type":3,"TypeString":"LOCATION_RECOMMENDED","Reason":"This location is part of the current materialization"} | ||
{"Field":"key","Type":1,"TypeString":"FIELD_REQUIRED","Reason":"This field is a key in the current materialization"} | ||
{"Field":"multiple","Type":3,"TypeString":"LOCATION_RECOMMENDED","Reason":"This location is part of the current materialization"} | ||
{"Field":"nonScalarValue","Type":3,"TypeString":"LOCATION_RECOMMENDED","Reason":"This location is part of the current materialization"} | ||
{"Field":"nullValue","Type":5,"TypeString":"FIELD_FORBIDDEN","Reason":"Cannot materialize a field where the only possible type is 'null'"} | ||
{"Field":"numericString","Type":3,"TypeString":"LOCATION_RECOMMENDED","Reason":"This location is part of the current materialization"} | ||
{"Field":"optional","Type":3,"TypeString":"LOCATION_RECOMMENDED","Reason":"This location is part of the current materialization"} | ||
{"Field":"scalarValue","Type":3,"TypeString":"LOCATION_RECOMMENDED","Reason":"This location is part of the current materialization"} | ||
{"Field":"second_root","Type":3,"TypeString":"LOCATION_RECOMMENDED","Reason":"This location is part of the current materialization"} | ||
|
||
Migratable Changes Before Apply Schema: | ||
{"Name":"_meta/flow_truncated","Nullable":"NO","Type":"BOOLEAN"} | ||
{"Name":"flow_document","Nullable":"NO","Type":"JSON"} | ||
{"Name":"flow_published_at","Nullable":"NO","Type":"TIMESTAMP WITH TIME ZONE"} | ||
{"Name":"key","Nullable":"NO","Type":"VARCHAR"} | ||
{"Name":"multiple","Nullable":"YES","Type":"JSON"} | ||
{"Name":"nonScalarValue","Nullable":"YES","Type":"JSON"} | ||
{"Name":"numericString","Nullable":"YES","Type":"HUGEINT"} | ||
{"Name":"optional","Nullable":"YES","Type":"JSON"} | ||
{"Name":"scalarValue","Nullable":"NO","Type":"VARCHAR"} | ||
{"Name":"second_root","Nullable":"NO","Type":"JSON"} | ||
|
||
|
||
Migratable Changes Before Apply Data: | ||
key (VARCHAR), _meta/flow_truncated (BOOLEAN), flow_document (VARCHAR), flow_published_at (TIMESTAMPTZ), multiple (VARCHAR), nonScalarValue (VARCHAR), numericString (HUGEINT), optional (VARCHAR), scalarValue (VARCHAR), second_root (VARCHAR) | ||
|
||
1, false, {}, 2024-09-13 01:01:01 +0000 UTC, <nil>, <nil>, 123, <nil>, test, {} | ||
|
||
Migratable Changes Constraints: | ||
{"Field":"_meta/flow_truncated","Type":3,"TypeString":"LOCATION_RECOMMENDED","Reason":"This location is part of the current materialization"} | ||
{"Field":"flow_document","Type":3,"TypeString":"LOCATION_RECOMMENDED","Reason":"This location is part of the current materialization"} | ||
{"Field":"flow_published_at","Type":3,"TypeString":"LOCATION_RECOMMENDED","Reason":"This location is part of the current materialization"} | ||
{"Field":"key","Type":1,"TypeString":"FIELD_REQUIRED","Reason":"This field is a key in the current materialization"} | ||
{"Field":"multiple","Type":3,"TypeString":"LOCATION_RECOMMENDED","Reason":"This location is part of the current materialization"} | ||
{"Field":"nonScalarValue","Type":3,"TypeString":"LOCATION_RECOMMENDED","Reason":"This location is part of the current materialization"} | ||
{"Field":"nullValue","Type":5,"TypeString":"FIELD_FORBIDDEN","Reason":"Cannot materialize a field where the only possible type is 'null'"} | ||
{"Field":"numericString","Type":3,"TypeString":"LOCATION_RECOMMENDED","Reason":"This location is part of the current materialization"} | ||
{"Field":"optional","Type":3,"TypeString":"LOCATION_RECOMMENDED","Reason":"This location is part of the current materialization"} | ||
{"Field":"scalarValue","Type":3,"TypeString":"LOCATION_RECOMMENDED","Reason":"This location is part of the current materialization"} | ||
{"Field":"second_root","Type":3,"TypeString":"LOCATION_RECOMMENDED","Reason":"This location is part of the current materialization"} | ||
|
||
Migratable Changes Applied Schema: | ||
{"Name":"_meta/flow_truncated","Nullable":"NO","Type":"BOOLEAN"} | ||
{"Name":"flow_document","Nullable":"NO","Type":"JSON"} | ||
{"Name":"flow_published_at","Nullable":"NO","Type":"TIMESTAMP WITH TIME ZONE"} | ||
{"Name":"key","Nullable":"NO","Type":"VARCHAR"} | ||
{"Name":"multiple","Nullable":"YES","Type":"JSON"} | ||
{"Name":"nonScalarValue","Nullable":"YES","Type":"JSON"} | ||
{"Name":"numericString","Nullable":"YES","Type":"VARCHAR"} | ||
{"Name":"optional","Nullable":"YES","Type":"JSON"} | ||
{"Name":"scalarValue","Nullable":"NO","Type":"VARCHAR"} | ||
{"Name":"second_root","Nullable":"NO","Type":"JSON"} | ||
|
||
|
||
Migratable Changes Applied Data: | ||
key (VARCHAR), _meta/flow_truncated (BOOLEAN), flow_document (VARCHAR), flow_published_at (TIMESTAMPTZ), multiple (VARCHAR), nonScalarValue (VARCHAR), numericString (VARCHAR), optional (VARCHAR), scalarValue (VARCHAR), second_root (VARCHAR) | ||
|
||
1, false, {}, 2024-09-13 01:01:01 +0000 UTC, <nil>, <nil>, 123, <nil>, test, {} | ||
|
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