Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am new to Talend, so I'm still figuring out all the components.
So put otherwise: split an input file into separate output files based on a SQL lookup table.
How could this flow look like? What components would be the obvious choices to tie togehter?
Many thanks for your advice!
OK, this is quite a high level description of this problem. As such, I can only really give you a high level suggestion.
At this point, it gets a little trickier. Do you know the number of output files or will this be dynamic? Is there a max number/type by name or can this be totally dynamic? If there is a max, then you would create an output from your tMap for each of these types and just route your rows according to the lookup data. If you have a dynamic output, then this will be the tricky bit. Certainly not impossible, just will require a bit of code to achieve this. I have written an answer to a similar question here https://community.talend.com/s/feed/0D73p000004kPVOCA2#M62228
Have a play and see where you get to with this.
Hi Richard,
Sorry for the late reply, lots of things going on at the same time here.
The header of the input file consists of multiple rows, so I guess I'll let tFileInputDelimited just read the whole file at one.
Then using tMSSqlSP and tMap I assume I end up with an enriched dataset (input file + lookup data).
I saw your solution that you linked to, from a few years ago. I do have a dynamic number of output files, so I think your approach with some Java code would work here.
I'm going to give it a try and see where I end up. I'll let you know.
Thanks!