Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Do not overwrite data with null when updating (#275) #276

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on May 11, 2022

  1. Do not overwrite data with null when updating (transferwise#275)

    Record messages for some updates from certain taps, e.g.
    Postgres with log-based replication when doing deletes,
    will only contain metadata and pkey columns. The current
    MERGE logic would then set all non-included columns in the
    target to null.
    Tolsto committed May 11, 2022
    Configuration menu
    Copy the full SHA
    2240462 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    962f687 View commit details
    Browse the repository at this point in the history
  3. Merge records into batch

    We cannot assume here that the latest version of a record
    will always contain all columns. For instance, in the case
    of delete records coming from Postgres via log-based replication
    the record message will only contain the primary key columns.
    Tolsto committed May 11, 2022
    Configuration menu
    Copy the full SHA
    b4307f1 View commit details
    Browse the repository at this point in the history