Hello! :wave: A quick question, is it possible to ...
# troubleshooting
j
Hello! 👋 A quick question, is it possible to use
state
when my replication key (a date) is descending instead of ascending? I don't find that the Tienda-nube API has a way to sort in ascending order (because I know is_sorted should be set to true for state to work)
✅ 1
e
Hey Julio! It is possible, but the bookmark will be treated as unsafe (i.e. written to the state but not in a place where it will be used by the tap) until the sync finishes. If the sync is interrupted, the sync will start from the beginning (or the previous run's bookmark), otherwise if the sync runs to completion, the bookmark will marked as safe to use and the next sync will start from there. Hope that makes sense 😅! The
is_sorted
probably doesn't have the best name, cause it should be used exclusively when the stream is sorted ascending. Even if it's false state will work, but interruptions will cause the tap to re-do some work.
j
It's clear to me then, thank you very much @Edgar Ramírez (Arch.dev)
np 1