I have a tap that uses a parent/child context, usi...
# singer-tap-development
a
I have a tap that uses a parent/child context, using the parent ID to get all the child records. How can I get the parent ID to show up as a field in the child records?
v
With the SDK it actually can be included just by including it in the schema for that stream. If you look closely at the logs there is a warning for the fields that exist in the record but are not output due to the schema not containing them
e
@visch is right! The parent context fields are included in the child record and you only need to add the schema entries for them. Issue to document that https://gitlab.com/meltano/sdk/-/issues/303
m
Woah!!! That’s great! I was adding them manually by overriding
post_process()
. Totally makes sense that you should be able to access it automatically though. Thanks!
a
I'm not seeing that behavior. Is it because I am overriding
parse_response
?
I take it back. I see the parent ID when I run the tap. But my test context must be different.