Talend Tutorial7 Configuring Joins in TMap
Talend Tutorial7 Configuring Joins in TMap
b. To add movieID, title, releaseYear, url, and directorID fields to the output component,
select the five fields from the movies component and drop them on the output
component.
c. In the joinRejects output file, click the tMap settings icon.
d. To change the Catch lookup inner join reject property, click the default setting false, and
then click [...] that appears next to false. In the Options window, click true, and then click
OK.
Note: By changing the Catch lookup inner join reject property to true, you can catch all the
lines of data that were rejected by the inner join in the new output.
e. Add a tFileOutputDelimited component to the Job Designer and link the joinRejects
output of the tMap_1 component to the tFileOutputDelimited_2 component.
f. To configure the output component, in the Component view of the component, specify
the path and name for the output file. Also, include a header row in the output file and
run the Job.
In the Job Designer, you can observe that out of 1682 rows of the input data, 142 rows appear
in the joinedOutput output, and the 1540 rejected rows are collected in the joinRejects
output.
You can also view the joinRejects output file and see all the movies that were rejected by the
join. These are the movies that do not have directorID in the movies file, plus those that have
directorID in the movies file that are absent in the directors file.