Talend Connect
Virtual Summit
JOIN US!
And visit the Customer
& Community Lounge.
May 27-28, wherever you are.

left outer join in tMap and reject few unmacthed records with condition provided

Highlighted
Six Stars

left outer join in tMap and reject few unmacthed records with condition provided

Hi All,

I have two tables with values below , Iam performing left outer join between tables to get all records from left table and matched records from right table. and I have condition provided where I don't want the record 1975 from left table to load into target which is not found in right table. How do I handle this scenario in tmap?

 

Table1                          Table2                                 Output

------------                     -----------                                -------------

2000                             2000                                     2000

1975                             1856                                    1856

1856                                                                         2010

2010                                                                         2020

2020

 

Thanks,

Anjlai

Highlighted
Sixteen Stars
Sixteen Stars

Re: left outer join in tMap and reject few unmacthed records with condition provided

Why don't you use a tFilterRow before the tMap to eliminate this row?

TRF
Highlighted
Six Stars

Re: left outer join in tMap and reject few unmacthed records with condition provided

Hi ,

 

Thanks for your reply. To eliminate two files are involved. So I cant use tfilterrow.

 

Thanks , Anjlai

Highlighted
Moderator

Re: left outer join in tMap and reject few unmacthed records with condition provided

@Anjali,please find the below way.

 

Untitled.pngUntitled.png

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.
Highlighted
Seven Stars

Re: left outer join in tMap and reject few unmacthed records with condition provided

Hello...

Apply filter on tmap as your output is based on fixed filter value

row1.table1 != 1975 

 

Regards

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog