Update Key spanning multiple columns #426
cody-scott
started this conversation in
General
Replies: 1 comment 1 reply
-
In your case, I would use a custom SQL. Combine the date/time columns into one, name it the same as the existing target |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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}
Beta Was this translation helpful? Give feedback.
All reactions