Skip to content

Commit

Permalink
materializations: update test snapshots
Browse files Browse the repository at this point in the history
Updates all the test snapshots for materializations that used to persist a spec
and now don't. The Apply action description has changed for them.
  • Loading branch information
williamhbaker committed Jan 23, 2025
1 parent 3bcee1c commit 05ec092
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions tests/materialize/materialize-bigquery/snapshot.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
"applied.actionDescription",
"CREATE TABLE IF NOT EXISTS `estuary-theatre`.testing.simple (\n\t\tid INTEGER NOT NULL,\n\t\tcanary STRING NOT NULL,\n\t\tflow_published_at TIMESTAMP NOT NULL,\n\t\tflow_document STRING NOT NULL\n)\nCLUSTER BY id;\n\nCREATE TABLE IF NOT EXISTS `estuary-theatre`.testing.duplicate_keys (\n\t\tid INTEGER NOT NULL,\n\t\tflow_published_at TIMESTAMP NOT NULL,\n\t\tint INTEGER,\n\t\tstr STRING NOT NULL,\n\t\tflow_document STRING NOT NULL\n)\nCLUSTER BY id;\n\nCREATE TABLE IF NOT EXISTS `estuary-theatre`.testing.multiple_types (\n\t\tid INTEGER NOT NULL,\n\t\tarray_int STRING,\n\t\tbinary_field STRING,\n\t\tbool_field BOOLEAN,\n\t\tfloat_field FLOAT64,\n\t\tflow_published_at TIMESTAMP NOT NULL,\n\t\tmultiple JSON,\n\t\tnested STRING,\n\t\tnullable_int INTEGER,\n\t\tstr_field STRING NOT NULL,\n\t\tflow_document STRING NOT NULL\n)\nCLUSTER BY id;\n\nCREATE TABLE IF NOT EXISTS `estuary-theatre`.testing.formatted_strings (\n\t\tid INTEGER NOT NULL,\n\t\tdate DATE,\n\t\tdatetime TIMESTAMP,\n\t\tflow_published_at TIMESTAMP NOT NULL,\n\t\tint_and_str BIGNUMERIC(38,0),\n\t\tint_str BIGNUMERIC(38,0),\n\t\tnum_and_str FLOAT64,\n\t\tnum_str FLOAT64,\n\t\ttime STRING,\n\t\tflow_document STRING NOT NULL\n)\nCLUSTER BY id;\n\nCREATE TABLE IF NOT EXISTS `estuary-theatre`.testing.unsigned_bigint (\n\t\tid INTEGER NOT NULL,\n\t\tflow_published_at TIMESTAMP NOT NULL,\n\t\tunsigned_bigint BIGNUMERIC(38,0),\n\t\tflow_document STRING NOT NULL\n)\nCLUSTER BY id;\n\nCREATE TABLE IF NOT EXISTS `estuary-theatre`.testing.deletions (\n\t\tid INTEGER NOT NULL,\n\t\t_meta_op STRING,\n\t\tflow_published_at TIMESTAMP NOT NULL,\n\t\tflow_document STRING NOT NULL\n)\nCLUSTER BY id;\n\nINSERT INTO `estuary-theatre`.testing.flow_materializations_v2 (version, spec, materialization) VALUES ('ffffffffffffffff', '(a-base64-encoded-value)', 'tests/materialize-bigquery/materialize');"
"CREATE TABLE IF NOT EXISTS `estuary-theatre`.testing.simple (\n\t\tid INTEGER NOT NULL,\n\t\tcanary STRING NOT NULL,\n\t\tflow_published_at TIMESTAMP NOT NULL,\n\t\tflow_document STRING NOT NULL\n)\nCLUSTER BY id;\n\nCREATE TABLE IF NOT EXISTS `estuary-theatre`.testing.duplicate_keys (\n\t\tid INTEGER NOT NULL,\n\t\tflow_published_at TIMESTAMP NOT NULL,\n\t\tint INTEGER,\n\t\tstr STRING NOT NULL,\n\t\tflow_document STRING NOT NULL\n)\nCLUSTER BY id;\n\nCREATE TABLE IF NOT EXISTS `estuary-theatre`.testing.multiple_types (\n\t\tid INTEGER NOT NULL,\n\t\tarray_int STRING,\n\t\tbinary_field STRING,\n\t\tbool_field BOOLEAN,\n\t\tfloat_field FLOAT64,\n\t\tflow_published_at TIMESTAMP NOT NULL,\n\t\tmultiple JSON,\n\t\tnested STRING,\n\t\tnullable_int INTEGER,\n\t\tstr_field STRING NOT NULL,\n\t\tflow_document STRING NOT NULL\n)\nCLUSTER BY id;\n\nCREATE TABLE IF NOT EXISTS `estuary-theatre`.testing.formatted_strings (\n\t\tid INTEGER NOT NULL,\n\t\tdate DATE,\n\t\tdatetime TIMESTAMP,\n\t\tflow_published_at TIMESTAMP NOT NULL,\n\t\tint_and_str BIGNUMERIC(38,0),\n\t\tint_str BIGNUMERIC(38,0),\n\t\tnum_and_str FLOAT64,\n\t\tnum_str FLOAT64,\n\t\ttime STRING,\n\t\tflow_document STRING NOT NULL\n)\nCLUSTER BY id;\n\nCREATE TABLE IF NOT EXISTS `estuary-theatre`.testing.unsigned_bigint (\n\t\tid INTEGER NOT NULL,\n\t\tflow_published_at TIMESTAMP NOT NULL,\n\t\tunsigned_bigint BIGNUMERIC(38,0),\n\t\tflow_document STRING NOT NULL\n)\nCLUSTER BY id;\n\nCREATE TABLE IF NOT EXISTS `estuary-theatre`.testing.deletions (\n\t\tid INTEGER NOT NULL,\n\t\t_meta_op STRING,\n\t\tflow_published_at TIMESTAMP NOT NULL,\n\t\tflow_document STRING NOT NULL\n)\nCLUSTER BY id;\n"
]
[
"connectorState",
Expand Down Expand Up @@ -351,7 +351,7 @@
}
[
"applied.actionDescription",
"UPDATE `estuary-theatre`.testing.flow_materializations_v2 SET version = 'ffffffffffffffff', spec = '(a-base64-encoded-value)' WHERE materialization = 'tests/materialize-bigquery/materialize';"
""
]
[
"connectorState",
Expand Down
4 changes: 2 additions & 2 deletions tests/materialize/materialize-databricks/snapshot.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions tests/materialize/materialize-elasticsearch/snapshot.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
"applied.actionDescription",
"create index \"flow_materializations_v2\"\ncreate index \"index-simple\"\ncreate index \"index-duplicated-keys-standard\"\ncreate index \"index-duplicated-keys-delta\"\ncreate index \"index-duplicated-keys-delta-exclude-flow-doc\"\ncreate index \"index-multiple-data-types\"\ncreate index \"index-formatted-strings\"\ncreate index \"index-deletions\"\nupdate stored materialization spec and set version = ffffffffffffffff"
"create index \"index-simple\"\ncreate index \"index-duplicated-keys-standard\"\ncreate index \"index-duplicated-keys-delta\"\ncreate index \"index-duplicated-keys-delta-exclude-flow-doc\"\ncreate index \"index-multiple-data-types\"\ncreate index \"index-formatted-strings\"\ncreate index \"index-deletions\""
]
[
"connectorState",
Expand Down Expand Up @@ -1055,7 +1055,7 @@
}
[
"applied.actionDescription",
"create index \"flow_materializations_v2\"\nupdate stored materialization spec and set version = ffffffffffffffff"
""
]
[
"connectorState",
Expand Down
4 changes: 2 additions & 2 deletions tests/materialize/materialize-mongodb/snapshot.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
"applied.actionDescription",
"update persisted spec"
""
]
[
"connectorState",
Expand Down Expand Up @@ -260,7 +260,7 @@
}
[
"applied.actionDescription",
"update persisted spec"
""
]
[
"connectorState",
Expand Down
4 changes: 2 additions & 2 deletions tests/materialize/materialize-motherduck/snapshot.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
"applied.actionDescription",
"\nCREATE TABLE IF NOT EXISTS test_db.main.\"simple\" (\n\tid BIGINT NOT NULL,\n\tcanary VARCHAR NOT NULL,\n\tflow_published_at TIMESTAMP WITH TIME ZONE NOT NULL,\n\tflow_document JSON NOT NULL\n);\n\n\nCREATE TABLE IF NOT EXISTS test_db.main.duplicate_keys_standard (\n\tid BIGINT NOT NULL,\n\tflow_published_at TIMESTAMP WITH TIME ZONE NOT NULL,\n\t\"int\" BIGINT,\n\tstr VARCHAR NOT NULL,\n\tflow_document JSON NOT NULL\n);\n\n\nCREATE TABLE IF NOT EXISTS test_db.main.duplicate_keys_delta (\n\tid BIGINT NOT NULL,\n\tflow_published_at TIMESTAMP WITH TIME ZONE NOT NULL,\n\t\"int\" BIGINT,\n\tstr VARCHAR NOT NULL,\n\tflow_document JSON NOT NULL\n);\n\n\nCREATE TABLE IF NOT EXISTS test_db.main.duplicate_keys_delta_exclude_flow_doc (\n\tid BIGINT NOT NULL,\n\tflow_published_at TIMESTAMP WITH TIME ZONE NOT NULL,\n\t\"int\" BIGINT,\n\tstr VARCHAR NOT NULL\n);\n\n\nCREATE TABLE IF NOT EXISTS test_db.main.multiple_types (\n\tid BIGINT NOT NULL,\n\tarray_int JSON,\n\tbinary_field VARCHAR,\n\tbool_field BOOLEAN,\n\tfloat_field DOUBLE,\n\tflow_published_at TIMESTAMP WITH TIME ZONE NOT NULL,\n\tmultiple JSON,\n\tnested JSON,\n\tnullable_int BIGINT,\n\tstr_field VARCHAR NOT NULL,\n\tflow_document JSON NOT NULL\n);\n\n\nCREATE TABLE IF NOT EXISTS test_db.main.formatted_strings (\n\tid BIGINT NOT NULL,\n\tdate DATE,\n\tdatetime TIMESTAMP WITH TIME ZONE,\n\tflow_published_at TIMESTAMP WITH TIME ZONE NOT NULL,\n\tint_and_str HUGEINT,\n\tint_str HUGEINT,\n\tnum_and_str DOUBLE,\n\tnum_str DOUBLE,\n\t\"time\" TIME,\n\tflow_document JSON NOT NULL\n);\n\n\nCREATE TABLE IF NOT EXISTS test_db.main.unsigned_bigint (\n\tid BIGINT NOT NULL,\n\tflow_published_at TIMESTAMP WITH TIME ZONE NOT NULL,\n\tunsigned_bigint HUGEINT,\n\tflow_document JSON NOT NULL\n);\n\n\nCREATE TABLE IF NOT EXISTS test_db.main.deletions (\n\tid BIGINT NOT NULL,\n\t\"_meta/op\" VARCHAR,\n\tflow_published_at TIMESTAMP WITH TIME ZONE NOT NULL,\n\tflow_document JSON NOT NULL\n);\n\nINSERT INTO test_db.main.flow_materializations_v2 (version, spec, materialization) VALUES ('ffffffffffffffff', '(a-base64-encoded-value)', 'tests/materialize-motherduck/materialize');"
"\nCREATE TABLE IF NOT EXISTS test_db.main.\"simple\" (\n\tid BIGINT NOT NULL,\n\tcanary VARCHAR NOT NULL,\n\tflow_published_at TIMESTAMP WITH TIME ZONE NOT NULL,\n\tflow_document JSON NOT NULL\n);\n\n\nCREATE TABLE IF NOT EXISTS test_db.main.duplicate_keys_standard (\n\tid BIGINT NOT NULL,\n\tflow_published_at TIMESTAMP WITH TIME ZONE NOT NULL,\n\t\"int\" BIGINT,\n\tstr VARCHAR NOT NULL,\n\tflow_document JSON NOT NULL\n);\n\n\nCREATE TABLE IF NOT EXISTS test_db.main.duplicate_keys_delta (\n\tid BIGINT NOT NULL,\n\tflow_published_at TIMESTAMP WITH TIME ZONE NOT NULL,\n\t\"int\" BIGINT,\n\tstr VARCHAR NOT NULL,\n\tflow_document JSON NOT NULL\n);\n\n\nCREATE TABLE IF NOT EXISTS test_db.main.duplicate_keys_delta_exclude_flow_doc (\n\tid BIGINT NOT NULL,\n\tflow_published_at TIMESTAMP WITH TIME ZONE NOT NULL,\n\t\"int\" BIGINT,\n\tstr VARCHAR NOT NULL\n);\n\n\nCREATE TABLE IF NOT EXISTS test_db.main.multiple_types (\n\tid BIGINT NOT NULL,\n\tarray_int JSON,\n\tbinary_field VARCHAR,\n\tbool_field BOOLEAN,\n\tfloat_field DOUBLE,\n\tflow_published_at TIMESTAMP WITH TIME ZONE NOT NULL,\n\tmultiple JSON,\n\tnested JSON,\n\tnullable_int BIGINT,\n\tstr_field VARCHAR NOT NULL,\n\tflow_document JSON NOT NULL\n);\n\n\nCREATE TABLE IF NOT EXISTS test_db.main.formatted_strings (\n\tid BIGINT NOT NULL,\n\tdate DATE,\n\tdatetime TIMESTAMP WITH TIME ZONE,\n\tflow_published_at TIMESTAMP WITH TIME ZONE NOT NULL,\n\tint_and_str HUGEINT,\n\tint_str HUGEINT,\n\tnum_and_str DOUBLE,\n\tnum_str DOUBLE,\n\t\"time\" TIME,\n\tflow_document JSON NOT NULL\n);\n\n\nCREATE TABLE IF NOT EXISTS test_db.main.unsigned_bigint (\n\tid BIGINT NOT NULL,\n\tflow_published_at TIMESTAMP WITH TIME ZONE NOT NULL,\n\tunsigned_bigint HUGEINT,\n\tflow_document JSON NOT NULL\n);\n\n\nCREATE TABLE IF NOT EXISTS test_db.main.deletions (\n\tid BIGINT NOT NULL,\n\t\"_meta/op\" VARCHAR,\n\tflow_published_at TIMESTAMP WITH TIME ZONE NOT NULL,\n\tflow_document JSON NOT NULL\n);\n"
]
[
"connectorState",
Expand Down Expand Up @@ -1148,7 +1148,7 @@
}
[
"applied.actionDescription",
"UPDATE test_db.main.flow_materializations_v2 SET version = 'ffffffffffffffff', spec = '(a-base64-encoded-value)' WHERE materialization = 'tests/materialize-motherduck/materialize';"
""
]
[
"connectorState",
Expand Down
4 changes: 2 additions & 2 deletions tests/materialize/materialize-mysql/snapshot.json

Large diffs are not rendered by default.

Loading

0 comments on commit 05ec092

Please sign in to comment.