I have a small problem using tFilterRow component in TOS Data Integration (version 6.5.1.).
I have two files that output into a database table. I need to filter the second filed based on values from the first file. My job currently looks like this (non-essential parts ommited)
My thinking is: Filter the first file base on set values in the file (this works fine).
Then filter the second file based on the output values of the first file (that has already been filtered). The tJDBCRow component has a SQL-query "select distinct id from table" that should be used as the filter for the second file.
Any help would be greatly appreciated!
You can use following solution
tDBInput ------->tFlowToIterate ---> tFileInputDelimeted -----> tFilterRow ----->tfileOutputDelemited
In tFilterRow use condition as id Equals ((Integer)globalMap.get("row2.id"))
and tFileOutputDelimeted in append mode
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Part 2 of a series on Context Variables
Learn how to do cool things with Context Variables
Find out how to migrate from one database to another using the Dynamic schema