Forum Discussion
marjan_karafilo
4 years agoContributor
Hi @matthias.voppichler ,
You can use the following example:
In binary router you can set the following:
In mapper you can use this:
And in the join you can set this:
Try it and let me know the outcome.
Regards
Unfortunately, this solution will only work as long as you only have one filename.
The moment you get multiple file documents (which is the case for me) - i get multiple documents in the “mapper1” step - so the join with “true = true” will multiply my rows per file.
Assuming i have 3 files, with 2 lines each (6 distinct lines expected in the output) - then i would receive 6 x 3 (18) lines - as each content line will be combined with every file name.
Related Content
- 2 years ago