I am having an issue with `get_replication_key_sig...
# troubleshooting
j
I am having an issue with
get_replication_key_signpost
in the sdk, maybe I do not fully understand how that works. My understanding was that method is used to make sure that the replication key value that is stored is not above a certain value right? so for example, I overwrote the method to return
2021-08-04T19:08:35+00:00
(as a datetime object), but I see that the replication key value that is stored in my state is
2021-08-04T19:17:29Z
which is greater than the replication key signpost value. Am I misunderstanding what the behavior of that method should be?
I tried with a much smaller timestamp even. Overwrote that
get_replication_key_signpost
to return
2021-08-02
(as a datetime object), but still getting the same results.
a
Hi, @joshua_adeyemi. This may be a bug. You are correct to expect the bookmark value to not pass the signpost value. To confirm though, there is a non-finalized state prior to stream completion, and there is a finalized/normal state. Can you provide the json state text to confirm? (Here or in an issue.)
I should add also, there may be sight differences in behavior depending upon whether the stream is sorted or not, whether it's partitioned, and whether there's a custom state granularity set.
j
Where would you prefer? here? or I open an issue and the convo continues there?
also to clarify, you want me to export the state file of the elt run correct?
Here is an issue, with some sample data and statefile, and links to where in the code i think the issue might be occurring: https://gitlab.com/meltano/sdk/-/issues/180