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
join stage
Moderators: chulett, rschirm, roy
Re: join stage
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 !"
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 !"
Re: join stage
Make sure that the input is partioned, sorted on the join keys in both the linkssri1111 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 order of keys given as the join keys and in the sort stage is same
Regards,
Senthil
Re: join stage
Make sure that both the inputs are partioned, sorted on the join keys in both the linkssri1111 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 order of keys given as the join keys and in the sort stage is same
Regards,
Senthil
Re: join stage
Make sure that both the inputs are partioned, sorted on the join keys in both the linkssri1111 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 order of keys given as the join keys and in the sort stage is same
Regards,
Senthil
-
- Participant
- Posts: 467
- Joined: Tue Mar 20, 2007 6:36 am
- Location: Chennai
- Contact:
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.
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>
<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>