join stage

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
sri1111
Charter Member
Charter Member
Posts: 29
Joined: Sun Nov 20, 2005 9:23 am

join stage

Post by sri1111 »

i have a px job which is joining some cols from look up table input is a file and out put is aslo a file , it has 3 keys on which i have to do lookup .Job is running fine without any warnings or error but it is not finding any match but there are keys in both table and file which matches .
if i do inner join nothing is passing.

Can any one help me out here.
Thanks
mctny
Charter Member
Charter Member
Posts: 166
Joined: Thu Feb 02, 2006 6:55 am

Re: join stage

Post by mctny »

There might be some space or other invisible characters before or after the actual value of the columns, for that reason you should use trim function for both the main input columns as well as the look up columns.
Thanks,
Chad
__________________________________________________________________
"There are three kinds of people in this world; Ones who know how to count and the others who don't know how to count !"
ThilSe
Participant
Posts: 80
Joined: Thu Jun 09, 2005 7:45 am

Re: join stage

Post by ThilSe »

sri1111 wrote:i have a px job which is joining some cols from look up table input is a file and out put is aslo a file , it has 3 keys on which i have to do lookup .Job is running fine without any warnings or error but it is not finding any match but there are keys in both table and file which matches .
if i do inner join nothing is passing.
Hi Sri,

Can any one help me out here.
Thanks
Make sure that the input is partioned, sorted on the join keys in both the links

Make sure that the order of keys given as the join keys and in the sort stage is same

Regards,
Senthil
ThilSe
Participant
Posts: 80
Joined: Thu Jun 09, 2005 7:45 am

Re: join stage

Post by ThilSe »

sri1111 wrote:i have a px job which is joining some cols from look up table input is a file and out put is aslo a file , it has 3 keys on which i have to do lookup .Job is running fine without any warnings or error but it is not finding any match but there are keys in both table and file which matches .
if i do inner join nothing is passing.
Hi Sri,

Can any one help me out here.
Thanks
Make sure that both the inputs are partioned, sorted on the join keys in both the links

Make sure that the order of keys given as the join keys and in the sort stage is same

Regards,
Senthil
ThilSe
Participant
Posts: 80
Joined: Thu Jun 09, 2005 7:45 am

Re: join stage

Post by ThilSe »

sri1111 wrote:i have a px job which is joining some cols from look up table input is a file and out put is aslo a file , it has 3 keys on which i have to do lookup .Job is running fine without any warnings or error but it is not finding any match but there are keys in both table and file which matches .
if i do inner join nothing is passing.
Hi Sri,

Can any one help me out here.
Thanks
Make sure that both the inputs are partioned, sorted on the join keys in both the links

Make sure that the order of keys given as the join keys and in the sort stage is same

Regards,
Senthil
Minhajuddin
Participant
Posts: 467
Joined: Tue Mar 20, 2007 6:36 am
Location: Chennai
Contact:

Post by Minhajuddin »

Yeah, As it has already been said, Try to trim your keys and leave the partitioning method to Auto or Hash with all the three columns.
This should do the trick.
Minhajuddin

<a href="http://feeds.feedburner.com/~r/MyExperi ... ~6/2"><img src="http://feeds.feedburner.com/MyExperienc ... lrow.3.gif" alt="My experiences with this DLROW" border="0"></a>
Post Reply