Caleb Hopkins
09/24/2024, 4:34 PMEdgar RamĂrez (Arch.dev)
09/24/2024, 5:01 PMmeltano.yml
have the state
capability?
https://docs.meltano.com/reference/plugin-definition-syntax/#capabilitiesCaleb Hopkins
09/24/2024, 8:02 PMCaleb Hopkins
09/24/2024, 8:04 PMplugins:
extractors:
- name: tap-smartsheetresourcemanagement
namespace: tap_smartsheetresourcemanagement
pip_url: ../tap-smartsheetresourcemanagement
executable: tap-smartsheetresourcemanagement
config:
auth_token: $SSRM_AUTH_TOKEN
select:
- '!*.*.*'
- '*.*'
metadata:
users:
replication_method: INCREMENTAL
replication_key:
- updated_at
capabilities:
- state
Caleb Hopkins
09/24/2024, 8:11 PMEdgar RamĂrez (Arch.dev)
09/24/2024, 8:17 PMNone
and it shouldn't be an issue. Cases where it shouldn't be `None`:
• Child streams
• Partitioned streams (e.g. override Stream.partitions
)
> but it's none so errors out
Do you know the line of code where it's erroring out? Are you trying to access the context directly or just passing it to self.*get_starting_timestamp(...)*
?Caleb Hopkins
09/24/2024, 8:30 PMdef get_url_params(
self,
context: Context | None, # noqa: ARG002
next_page_token: Any | None, # noqa: ANN401
) -> dict[str, Any]:
"""Return a dictionary of values to be used in URL parameterization.
Args:
context: The stream context.
next_page_token: The next page index or value.
Returns:
A dictionary of URL query parameters.
"""
# Assert that context is not None
assert self.get_starting_timestamp(self.context) is not None, "Starting timestamp is None in get_url_params"
wondering why nothing's getting passed for the context in this case and if that's how it's supposed to be then what the best way to get that incremental timestamp cutoff is for this streamEdgar RamĂrez (Arch.dev)
09/24/2024, 8:41 PMparent_stream_type
, so that's probably not your case
https://github.com/edgarrmondragon/tap-neon/blob/61c8d773f2950b830079f99ab0adba7d00018684/tap_neon/streams.py#L70
Does your stream define a replication_key
?
https://github.com/edgarrmondragon/tap-pushbullet/blob/d68030dca06d91f683ba59c546e0dcff12050ae7/tap_pushbullet/streams.py#L115Caleb Hopkins
09/24/2024, 8:46 PMAdded to state dev:tap-smartsheetresourcemanagement-to-target-jsonl state payload {'singer_state': {'bookmarks': {'users': {'replication_key': 'updated_at', 'replication_key_value': '2024-09-19T14:42:46Z'}}}}
Just wondering how to get at that replication_key_value in subsequent runsEdgar RamĂrez (Arch.dev)
09/24/2024, 8:50 PMself.get_starting_timestamp
should give you what you want then. How are you invoking the tap?Caleb Hopkins
09/24/2024, 8:51 PMmeltano run tap-smartsheetresourcemanagement target-jsonl
Caleb Hopkins
09/24/2024, 9:04 PM