Posting it again 1. Can we maintain state in pare...
# troubleshooting
a
Posting it again 1. Can we maintain state in parent stream from child stream ? 2. Any way to create static key for maintaining state , since id is alphanumeric and is generated new each time i fire query ?
e
1. Not really, at least not with the SDK's public APIs. Normally there's a 1-1 mapping between parent records and child contexts, so it would not be clear which of all those states you'd want to use with the parent. 2. I'm not sure I understand. The id you want to use as replication key is not part of the record, but is unique to every request you make?
a
i need latest timestamp from child stream to update it in parent stream state.
for that i need to create dummy/static replication field in parent stream? is this possible
e
Yes, you can add a dummy field with a constant value in
post_process
a
Thanks. I need latest timestamp from child stream to update it in parent stream state? is this possible ?
a
@avinash_gupta - An example would be helpful here. In general, parent streams provide some amount of context to child streams, but (generally speaking) not vice versa. Can you say more about the relationship you are intending, and perhaps a bit of information on any source API constraints that might require these adaptations?
a
in Parent Stream, i provide query with time range which returns query_id in response. Child stream use generated query_id to fetch actual response which contains time. i need max time in child data to create query in parent stream for next run.
@aaronsteers @edgar_ramirez_mondragon any way for it ?