10-16-2020 08:40 AM
I have a simple pipeline where I’m using Router to decide if an oracle procedure should be called. Even if I just set the router expression to false for the output0 view, the output0 snap (the oracle procedure), is still being executed. I’ve tried resetting my workspace. Is this a bug?
10-16-2020 12:49 PM
I can’t replicate it. Can you please add more details on your router expression. Thanks.
10-19-2020 06:30 AM
I’m using false for output0 and true for output1
10-19-2020 06:53 AM
It appears to be the combination of the router and a gate snap. The gate snap, and the snaps after it, are being executed even if the router condition is not met.
10-20-2020 07:59 AM
@wpenfold, Per the gate snap documentation the gate snap will always produce an output document, even if input is empty. For these types of situations, it suggests following it with a filter snap with the expression !$.isEmpty()
.