ilkka_peltola
06/16/2022, 8:39 AMilkka_peltola
06/16/2022, 9:57 AMilkka_peltola
06/16/2022, 11:56 AMilkka_peltola
06/16/2022, 1:36 PMedgar_ramirez_mondragon
06/16/2022, 2:14 PMWhere should I implement a custom state thing?What's the behavior you're trying to modify in the tap? If it's just "filter out records older that X timestamp", we have an issue to implement it natively in the SDK, and also some suggestions in the original gitlab issue: https://gitlab.com/meltano/sdk/-/issues/227#note_926360644
ilkka_peltola
06/16/2022, 2:18 PMid
field for the starting_after
like so:
?starting_after=cc58bd14-3457-480a-a44d-2cea833fac24
and not like ?starting_after=2022-05-01T00:00:00
then, if I specify the id
as the replication_key
, the "highest" value id
will be tracked, which often is something like ff31e109-f873-41b6-9f1c-2d88b5bf6a2a
notice the leading ff...
Instead of that, since I can order the records based on created_at
, what I want to do is take the id
of the last record I got and store that into the state, instead of what would be "highest".edgar_ramirez_mondragon
06/16/2022, 2:52 PMaaronsteers
06/16/2022, 3:51 PMstarting_after
being non-sequential key is an interesting problem which I don't think the SDK has documentation or handling around. I'm sure there is a way to do it by disabling the "if greater than" check and always taking the newest key, but a logged issue would be super helpful here to find and prove some reusable patterns for others facing a similar challenge. As @edgar_ramirez_mondragon suggests, do you mind logging something here in the SDK issue tracker?aaronsteers
06/16/2022, 3:54 PMilkka_peltola
06/17/2022, 12:41 PM