• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [resolved] problem with First Match records(in tMap)!

#1 2012-05-24 09:06:50

buzzy96
Member
Registered: 2012-02-07
Posts: 32

[resolved] problem with First Match records(in tMap)!

Tags: [tos3.0.0]

hi,

i am updating existing table by using EmployeeID,here table having duplicate  records of EmployeeID.

main table:-

employeeid
------------
101
102
103

lookuptable:-

employeeid
------------

102
102
103
103
103
105
105

expected output
-----------------
employeedid      hc
-------------       -----
                   
102                   1
102                   0 or null (previously null before this load )
103                   1
103                   0 or null (previously null before this load )
103                   0 or null (previously null before this load )
105                   1
105                   0 or null (previously null before this load )
how to get First Matching records from lookup table and need to update according the target table by using EmployeeID as a Key?


thx

Offline

#2 2012-05-24 09:25:05

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: [resolved] problem with First Match records(in tMap)!

Hi

Use 'first match' feature of tMap as the following image.

Regards,
Pedro


Uploaded Images


Only Paranoid Survive.

Offline

#3 2012-05-24 09:41:58

buzzy96
Member
Registered: 2012-02-07
Posts: 32

Re: [resolved] problem with First Match records(in tMap)!

by using that feature all records are updating!!!!,i already check.,not sure why tht function is not working perfectly???

pls let me know ,any another way ...

Offline

#4 2012-05-24 09:44:29

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: [resolved] problem with First Match records(in tMap)!

Hi

Code:

how to get First Matching records from lookup table and need to update according the target table by using EmployeeID as a Key?

I think I misunderstand what you mean.
Could you explain it in another way?

Regards,
Pedro


Only Paranoid Survive.

Offline

#5 2012-05-24 09:47:14

buzzy96
Member
Registered: 2012-02-07
Posts: 32

Re: [resolved] problem with First Match records(in tMap)!

hi pedro,

could u pls see my i/p and o/p results in my first post?

Offline

#6 2012-05-24 12:33:11

buzzy96
Member
Registered: 2012-02-07
Posts: 32

Re: [resolved] problem with First Match records(in tMap)!

any help on this post?

Offline

#7 2012-10-26 18:23:29

beardoraemon
New member
Registered: 2011-03-31
Posts: 8

Re: [resolved] problem with First Match records(in tMap)!

i have same issue, everything runs perfectly, but when i change to first match, have java heap space issue. Any solutions?

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [resolved] problem with First Match records(in tMap)!

Board footer

Powered by FluxBB