Rejecting rows using tMap
This recipe shows how tMap
can be used to ensure that unwanted rows are not propagated downstream. This may be as a result of the filter criteria or a validation rule.
Getting ready
Open the job jo_cook_ch03_0030_tMapRejects
.
How to do it…
- Open the
tMap
and click the Activate/unactivate expression filter button for the validRows output. - In the Expression box add the code
customer.age
>=
18
. - Click on the
tMapRejects
output and then on the tMapSettings button. - Click on Catch output reject value column to set it to
true
. - Run the job. ...
Get Talend Open Studio Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.