Skip to content

Update Key spanning multiple columns #425

Description

@cody-scott

Feature Description

In one of our databases our update key is stored across multiple columns; one for date and one for time.

Our current replication process joins these columns prior to replication into a single delta column and uses that as the incremental field to filter new/changed records. How would you go about achieving this with Sling?

One idea was sql replication where the where filter is performing the combining/filtering of the new data. Unclear if this would work for anything but a full refresh, which at that stage might as well just perform the comparison on the primary key.

Another option is to add the column as part of the load processes, but this breaks the column typing as the calls to information_schema won't discover the column as it doesn't exist in the source set. A possible solution would be to allow additional columns to be defined in the replication file (with column type), such as {name: combined_date_column, type: datetime}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions