Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: BATCH sync does not record a max replication key value in emitted STATE #12

Closed
aaronsteers opened this issue Dec 30, 2022 · 0 comments · Fixed by #13
Closed

fix: BATCH sync does not record a max replication key value in emitted STATE #12

aaronsteers opened this issue Dec 30, 2022 · 0 comments · Fixed by #13
Labels
bug Something isn't working Urgency/high

Comments

@aaronsteers
Copy link
Contributor

Related to:

As noted there, the simply fix is to run a SELECT max(<replication_key>) FROM <table> prior to querying the batches. The developer can then leverage this in get_batches() for subsequent sync using the normal get_replication_key_value() method, and then filtering the query to be limited by the max replication key value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Urgency/high
Projects
None yet
1 participant