Join issue

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
samsuf2002
Premium Member
Premium Member
Posts: 397
Joined: Wed Apr 12, 2006 2:28 pm
Location: Tennesse

Join issue

Post by samsuf2002 »

Hi All,

I am trying to join 2 files based on key1(int) and key2(varchar), its not finding a match when I use both as keys although I can manually see the file and finds a match. if I remove key2 its working on Key1 but key2 is required. I tried trimming both keys in both files but still no match. Both files are generated from oracle table and I have $apt_oracle_preserve_blanks as false. I tried both lookup and join with sort, still not working.

Can any one help me on this..

Thanks in advance
hi sam here
abc123
Premium Member
Premium Member
Posts: 605
Joined: Fri Aug 25, 2006 8:24 am

Post by abc123 »

Have you tried testing with a very small number of rows like 1 or 2 on each side and see if they match?
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Also try a test running just a 1-node configuration, as joins are commonly erroneous when incorrect partitioning is used.
bart12872
Participant
Posts: 82
Joined: Fri Jan 19, 2007 5:38 pm

Post by bart12872 »

1- check that your column have the same format in your 2 inputs
integer must join and integer and a varchar join a varchar

2-check your partitionning and your sorts.
you're are right if the partitionning and the sort are the same of the join key and in the same order

3- Insert copy before your inputs and output data with peek to see what is the real data and transform them if necesary

Martin.
Post Reply