david_wallace
09/02/2022, 6:27 PMdavid_wallace
09/02/2022, 6:32 PMstate_partition_keys
to []
which seems to almost get me there, but it looks like the state post-sync never gets the progress markers promoted to replication keys:
{
"bookmarks": {
"merchants": {},
"transactions": {
"replication_key_signpost": "2022-09-02T18:31:50.388980+00:00",
"starting_replication_value": "2022-06-01",
"progress_markers": {
"Note": "Progress is not resumable if interrupted.",
"replication_key": "transaction_time",
"replication_key_value": "2022-08-31T15:17:02+00:00"
}
}
}
}
edgar_ramirez_mondragon
09/02/2022, 8:00 PMis_sorted
attribute of the child stream to True
?david_wallace
09/02/2022, 8:01 PMcontext
during ingestion (we add some keys to it)edgar_ramirez_mondragon
09/02/2022, 9:51 PMmy hypothesis is that this is due to the fact that we muck around withAh yeah, that may be it. Issue’s probably around this line: https://github.com/meltano/sdk/blob/be8e0eb51a4e53dea790ef06dafa48c5067cda92/singer_sdk/streams/core.py#L1019during ingestion (we add some keys to it)context
david_wallace
09/02/2022, 9:55 PMdavid_wallace
09/02/2022, 9:57 PMaaronsteers
09/02/2022, 10:16 PMi find myself needing to pass some arbitrary extra info to stream methods quite often, and I just assumed thats what context was for. it would be really nice if there was some sort of facility for passing arbitrary metadata through the stream componentsThis would make a really good feature proposal if you want to make an issue. Class-level and object-level declarations are tricky because the same class may be invoked several times, and the same stream object (at least as of now) may handle calls for multiple parents or partitions. All that said, it's certainly something that could help out developers, I think.
aaronsteers
09/02/2022, 10:18 PMaaronsteers
09/02/2022, 10:19 PMaaronsteers
09/02/2022, 10:20 PMdavid_wallace
09/02/2022, 11:15 PMThis would make a really good feature proposal if you want to make an issue. Class-level and object-level declarations are tricky because the same class may be invoked several times, and the same stream object (at least as of now) may handle calls for multiple parents or partitions.
All that said, it’s certainly something that could help out developers, I think.cool - I can def write up an issue this weekend @aaronsteers
david_wallace
09/02/2022, 11:16 PMTo the issue of stream state not being finalized - is this even after the tap finishing the other streams and shutting down normally (with success)?yep! this is after all streams finish successfully
david_wallace
09/02/2022, 11:17 PMaaronsteers
09/03/2022, 12:13 AM