10-25-2019 12:05 PM
I need to get Distinct update_dt and write one file per date from a oracle table sufixing the filename with date value. can you provide a sample pipeline which has similar functionality
I have created 2 pipelines one with
10-28-2019 09:06 AM
Hey welcome to the community, GV2019.
I’d recommend that you consider using a PipeExec instead of the deprecated ForEach snap. The basic idea is to have a pipe parameter that is passed into your second pipeline, which can be used for setting the file name. The document will also be passed in, which can be used to do the query. This makes it a little easier so you don’t have to plumb the update_dt
through to the FileWriter.
Here’s a simple example that shows how to pass a parameter and use it in the a child pipeline. The pass-param-pipeline
will pass in a document and set a pipeline parameter on use-param-example
, which takes the document and writes it out using the update_dt
field. Hope this is helpful.
pass-param-pipeline_2019_10_28.slp (4.2 KB)
use-param-example_2019_10_28.slp (4.8 KB)
10-29-2019 12:28 PM
Hi tlikarish the samples helped in understanding how to create and pass parameters
Thank you
GV
08-19-2020 08:40 PM
@GV2019 You may make use of parameters and headers to configure pipeline execute snap. If there are more don’t configure anything and pull them as $ in child.