-
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-bigquery: formatted string to string migration
- Loading branch information
Showing
4 changed files
with
360 additions
and
3 deletions.
There are no files selected for viewing
71 changes: 71 additions & 0 deletions
71
materialize-bigquery/.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,71 @@ | ||
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":2,"TypeString":"LOCATION_REQUIRED","Reason":"The root document must 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":5,"TypeString":"FIELD_FORBIDDEN","Reason":"Only a single root document projection can be materialized for standard updates"} | ||
|
||
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":1,"TypeString":"FIELD_REQUIRED","Reason":"This field is the document in 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":5,"TypeString":"FIELD_FORBIDDEN","Reason":"Cannot materialize root document projection 'second_root' because field 'flow_document' is already being materialized as the document"} | ||
|
||
Migratable Changes Before Apply Schema: | ||
{"Name":"_meta_flow_truncated","Nullable":"NO","Type":"BOOL"} | ||
{"Name":"flow_document","Nullable":"NO","Type":"STRING"} | ||
{"Name":"flow_published_at","Nullable":"NO","Type":"TIMESTAMP"} | ||
{"Name":"key","Nullable":"NO","Type":"STRING"} | ||
{"Name":"multiple","Nullable":"YES","Type":"JSON"} | ||
{"Name":"nonScalarValue","Nullable":"YES","Type":"STRING"} | ||
{"Name":"numericString","Nullable":"YES","Type":"BIGNUMERIC(38)"} | ||
{"Name":"optional","Nullable":"YES","Type":"STRING"} | ||
{"Name":"scalarValue","Nullable":"NO","Type":"STRING"} | ||
|
||
|
||
Migratable Changes Before Apply Data: | ||
key (STRING), _meta_flow_truncated (BOOLEAN), flow_published_at (TIMESTAMP), multiple (JSON), nonScalarValue (STRING), numericString (BIGNUMERIC), optional (STRING), scalarValue (STRING), flow_document (STRING) | ||
1, false, 2024-09-13 01:01:01 +0000 UTC, <nil>, <nil>, 123/1, <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":1,"TypeString":"FIELD_REQUIRED","Reason":"This field is the document in 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":5,"TypeString":"FIELD_FORBIDDEN","Reason":"Cannot materialize root document projection 'second_root' because field 'flow_document' is already being materialized as the document"} | ||
|
||
Migratable Changes Applied Schema: | ||
{"Name":"_meta_flow_truncated","Nullable":"NO","Type":"BOOL"} | ||
{"Name":"flow_document","Nullable":"NO","Type":"STRING"} | ||
{"Name":"flow_published_at","Nullable":"NO","Type":"TIMESTAMP"} | ||
{"Name":"key","Nullable":"NO","Type":"STRING"} | ||
{"Name":"multiple","Nullable":"YES","Type":"JSON"} | ||
{"Name":"nonScalarValue","Nullable":"YES","Type":"STRING"} | ||
{"Name":"numericString","Nullable":"YES","Type":"STRING"} | ||
{"Name":"optional","Nullable":"YES","Type":"STRING"} | ||
{"Name":"scalarValue","Nullable":"NO","Type":"STRING"} | ||
|
||
|
||
Migratable Changes Applied Data: | ||
key (STRING), _meta_flow_truncated (BOOLEAN), flow_published_at (TIMESTAMP), multiple (JSON), nonScalarValue (STRING), optional (STRING), scalarValue (STRING), flow_document (STRING), numericString (STRING) | ||
1, false, 2024-09-13 01:01:01 +0000 UTC, <nil>, <nil>, <nil>, test, {}, 123 | ||
|
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.