Hello team, happy tuesday! Question for you - wou...
# singer-tap-development
s
Hello team, happy tuesday! Question for you - would anyone know how to use conditional statements on child stream? I would like to create a child stream which is only triggered when the parent stream has a specific boolean value (it's not a boolean, it's a string, but for clarity lets go with a boolean 😉 ) Ex: • ParentStream(meltanoStream) has x=false in record; child stream is not called • ParentStream(meltanoStream) has x=true; in record; child stream is called to create new record Is this possible?
e
Hey @Stéphane Burwash! If you return
None
from the parent stream’s get_child_context the child sync for that parent record will be skipped. That behavior was added in
v0.24.0
.
s
Thanks @edgar_ramirez_mondragon! Just to be clear, this is v0.24.0 of the singer sdk?
e
Yup!
s
@edgar_ramirez_mondragon thanks! If you're interested, here's what I did with your help 😄 Thanks again!
e
That’s cool, thanks for sharing @Stéphane Burwash!