-
Notifications
You must be signed in to change notification settings - Fork 466
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fivetran-destination: Use the provided Docker image (#24835)
This PR is centered around testing the Fivetran Destination, it does a few individual things: 1. Uses the Fivetran provided Docker image of the "destination tester" instead of building our own from our fork of the fivetran sdk. 2. Breaks up the existing "test_writes" into separate tests, since the testing behavior we were trying to do isn't yet supported (see [Slack](https://materializeinc.slack.com/archives/C060KAR4802/p1706548430680759)). 3. Updates our connector so we no longer splice the "_fivetran_synced" and "_fivetran_deleted" columns into various requests, since the tester now provides these. 4. Runs our Fivetran destination tests in CI. There are a couple outstanding issues related to testing the Fivetran Destination that I have pinged them about and are currently in progress: 1. aarch64 based Docker image. Currently if you run these tests locally on a Mac it will run the x86 image in emulation mode. [Slack](https://materializeinc.slack.com/archives/C060KAR4802/p1706548430680759) 2. The "truncate" option in their testing framework is currently broken. [Slack](https://materializeinc.slack.com/archives/C060KAR4802/p1706651239233319). Even with these issues I wanted to get this change up in case I switch to other work soon. ### Motivation Fixes https://github.com/MaterializeInc/materialize/issues/24446 ### Checklist - [ ] This PR has adequate test coverage / QA involvement has been duly considered. - [ ] This PR has an associated up-to-date [design doc](https://github.com/MaterializeInc/materialize/blob/main/doc/developer/design/README.md), is a design doc ([template](https://github.com/MaterializeInc/materialize/blob/main/doc/developer/design/00000000_template.md)), or is sufficiently small to not require a design. <!-- Reference the design in the description. --> - [ ] If this PR evolves [an existing `$T ⇔ Proto$T` mapping](https://github.com/MaterializeInc/materialize/blob/main/doc/developer/command-and-response-binary-encoding.md) (possibly in a backwards-incompatible way), then it is tagged with a `T-proto` label. - [ ] If this PR will require changes to cloud orchestration or tests, there is a companion cloud PR to account for those changes that is tagged with the release-blocker label ([example](MaterializeInc/cloud#5021)). <!-- Ask in #team-cloud on Slack if you need help preparing the cloud PR. --> - [x] This PR includes the following [user-facing behavior changes](https://github.com/MaterializeInc/materialize/blob/main/doc/developer/guide-changes.md#what-changes-require-a-release-note): - N/a
- Loading branch information
Showing
22 changed files
with
164 additions
and
150 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
Submodule fivetran-sdk
updated
36 files
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 @@ | ||
Verifies that truncate works correctly. |
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,34 @@ | ||
{ | ||
"create_table": { | ||
"test_truncate": { | ||
"columns": { | ||
"k1": "INT", | ||
"k2": "STRING", | ||
"v1": "DECIMAL", | ||
"v2": "JSON" | ||
}, | ||
"primary_key": ["k1", "k2"] | ||
} | ||
}, | ||
"ops": [ | ||
{ | ||
"upsert": { | ||
"test_truncate": [ | ||
{"k1": "1", "k2": "a", "v1": "12.78", "v2": "{\"x\": \"y\"}"}, | ||
{"k1": "1", "k2": "b", "v1": "91.28", "v2": "{}"}, | ||
{"k1": "2", "k2": "a", "v1": "34.21", "v2": "null"} | ||
] | ||
} | ||
}, | ||
{ | ||
"update": { | ||
"test_truncate": [ | ||
{"k1": "2", "k2": "a", "v2": "{\"x\": \"z\"}"} | ||
] | ||
} | ||
}, | ||
{ | ||
"truncate": ["test_truncate"] | ||
} | ||
] | ||
} |
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 @@ | ||
Verifies that update works correctly. |
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,31 @@ | ||
{ | ||
"create_table": { | ||
"test_update": { | ||
"columns": { | ||
"k1": "INT", | ||
"k2": "STRING", | ||
"v1": "DECIMAL", | ||
"v2": "JSON" | ||
}, | ||
"primary_key": ["k1", "k2"] | ||
} | ||
}, | ||
"ops": [ | ||
{ | ||
"upsert": { | ||
"test_update": [ | ||
{"k1": "1", "k2": "a", "v1": "12.78", "v2": "{\"x\": \"y\"}"}, | ||
{"k1": "1", "k2": "b", "v1": "91.28", "v2": "{}"}, | ||
{"k1": "2", "k2": "a", "v1": "34.21", "v2": "null"} | ||
] | ||
} | ||
}, | ||
{ | ||
"update": { | ||
"test_update": [ | ||
{"k1": "2", "k2": "a", "v2": "{\"x\": \"z\"}"} | ||
] | ||
} | ||
} | ||
] | ||
} |
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 @@ | ||
Verifies that upsert works correctly. |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.