mark_estey
06/02/2025, 9:06 PMReuben (Matatika)
06/03/2025, 2:43 PMget_records
override having passed the record property we want to filter on in context:
https://github.com/Matatika/tap-iterable-msdk/blob/43bce0c92e7e2af96c664283634c7978529a31a6/tap_iterable/streams.py#L168-L173
You would need to pass object_type
as context to the child stream, i.e. in your parent stream class:
def get_child_context(self, record, context):
return {"object_type": record["object_type"]}
Edgar RamÃrez (Arch.dev)
06/03/2025, 3:39 PMNone
, then the child sync for that parent record will be skipped, but I think @mark_estey's request is subtly more complex.
IIUC, the parent stream has 2 child streams, each of which should only be synced for a specific type of record/context. Kind of like case 2 in https://github.com/meltano/sdk/discussions/2846, but conditional and for different child streams.Reuben (Matatika)
06/03/2025, 3:45 PMeach of which should only be synced for a specific type of record/contextThat is this, no?
mark_estey
06/03/2025, 3:54 PMget_records
for each child and have it only pass through the ones that match like you did @Reuben (Matatika) but was curious if there was a better way. To me it could be useful if there was a way for each child to declare how they would like to receive context from the parent. This would also be useful in cases where multiple children need different pieces of context from the parent in addition to being able to control if a context record is generated from the parent or not on a per-child basis.