Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
materializations: integration test for merge-and-then-insert transact…
…ions Extends the materialization integration test fixture to include an additional transaction for the "duplicate keys" scenario where all of the keys are new. The progression is then 1) All keys are new for the initial transaction, 2) Updates to existing keys for the next transaction 3) (New) A transaction with all new keys. This exercises the behavior some materializations implement where merge types of queries are only run if some of the keys to store have updates, and otherwise a more efficient direct insert is run. It is reflected in the test snapshots for materializations that persist queries in their state, most notably for databricks, where a bug in this behavior was fixed in the prior commit. Since I had to update most of the test snapshots for this, I also included the following changes: * Updated the google sheets materialization test setup to use an encrypted config file like all the other materialization tests. * Did a bit of cleaned up the CI spec file mostly related to the above. * Added an empty transaction to the test fixture, which is run first. This simulates what happens if a materialization is configured with a "notBefore" setting, and processes some empty transactions at first due to skipping over data. This revealed that materialize-sqlserver still wasn't handling this correctly, so that is fixed as well.
- Loading branch information