Joining data using tMap
So far, we have seen how tMap
can be used to transform and filter input data. But this is only a part of the tMap
functionality. The tMap
component is also the main component used to perform join logic between multiple input sources. This recipe demonstrates the basics of using tMap
to join multiple data sources.
Getting ready
Open the job jo_cook_ch04_0070_tMapJoin
.
How to do it...
- Right-click
tFileInputDelimited
. Go to Row | Main and connect it totMap_1
. Change the name of the flow toorder
. - Open
tMap,
and you should see two input tables: customer and order. - Select the
customerId
field from thecustomer
table and drag it to thecustomerId
Expr. key
in theorder
table. - You will see a purple key icon and a flow showing the linked ...
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.