philip_johnson
08/25/2022, 1:03 AMmodified_at
field for certain streams. Is there a simple example that exists anywhere to model mine from? I've scoured the docs but haven't been able to find anything that I'm looking for. Apologies if this has been covered already!aaronsteers
08/25/2022, 1:34 AMget_starting_timestamp()
will happen within a custom get_url_params() call.aaronsteers
08/25/2022, 1:42 AMaaronsteers
08/25/2022, 1:44 AMaaronsteers
08/25/2022, 1:44 AMaaronsteers
08/25/2022, 1:56 AMreplication_key
on the stream class. And the value of get_starting_timestamp()
will automatically consider the bookmark value, as well as a start_date
input config, if provided by the user.christoph
08/25/2022, 1:58 AMtap-shopify
probably has a good variety of examples for replication key: https://github.com/Matatika/tap-shopifyphilip_johnson
08/25/2022, 2:00 AMphilip_johnson
08/25/2022, 2:01 AMreplication_method
in the stream class or meltano config?philip_johnson
08/25/2022, 2:02 AMaaronsteers
08/25/2022, 2:03 AMis it also necessary to setNope. Setting thein the stream class or meltano config?replication_method
replication_key
is sufficient and tells the Tap that you can support key-based incremental replication. The user can then select from INCREMENTAL or FULL_TABLE, as needed.philip_johnson
08/25/2022, 2:06 AMaaronsteers
08/25/2022, 2:07 AMphilip_johnson
08/25/2022, 2:15 AMphilip_johnson
08/25/2022, 2:15 AMstate.json
file gets saved or anything like that likephilip_johnson
08/25/2022, 2:17 AM{"type": "STATE", "value": {"bookmarks": {"orders-received": {"replication_key": "modified", "replication_key_value": "2022-08-24T18:01:19.104156-06:00"}}}}
aaronsteers
08/25/2022, 2:31 AMmeltano state list
and meltano state get
to validate the values generated. You can also seed/override values with meltano state set
.
In not using Meltano, i.e. if invoking directly, you can pass in a state file using the --state
CLI arg.aaronsteers
08/25/2022, 2:33 AMwill do! this is for a client, but might as well publish when I'm doneTotally your call. While we of course advocate for community contributions and open source, we want to support all kinds of business models. A nice benefit of putting on the hub (apart from attribution) is that the community can help with bug fixes and future iterations. 🙂
philip_johnson
08/25/2022, 1:19 PM