Is this a bug or am I holding it wrong? <https://g...
# singer-tap-development
b
Is this a bug or am I holding it wrong? https://gitlab.com/meltano/singer-sdk/-/blob/main/singer_sdk/streams/core.py#L107
state
here should look like:
Copy code
{
  "replication_key": "some_column",
  "replication_key_value": "2021-04-01T00:00:00Z"
}
Which basically means that that
if
statement can never succeed unless your replication key is
replication_key
or
replication_key_value
a
Confirmed. That is a bug. Do you mind logging an issue?
b
Sure thing
a
A previous version of the state implementation was using the bare attribute name in the state dictionary. It was changed in the other location but not here.
Thanks very much for reporting! You are welcome to submit a merge request, but this should be a quick fix and I can get to it shortly if not.
b
I can probably get to it in the morning, have a few things to button up before I finish my day.
a
Great. And if I beat you to it, I’ll post back to this thread and also in the Issue.
b
Thank you!
a
@brandon_isom Just a heads up that I logged the issue and started an MR, still in progress. Will post those links back here shortly.
b
Glad I checked, heh
a
@brandon_isom - This is resolved and ready for retest: https://gitlab.com/meltano/singer-sdk/-/merge_requests/58
I also added a new test to confirm proper handling.
Let me know if you are able to confirm using the
development
branch! Assuming no other issues, I’ll likely merge this later today or by Monday latest.