Warning in when using Remove duplicate and sort 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
snt_ds
Premium Member
Premium Member
Posts: 280
Joined: Wed Oct 18, 2006 11:53 am
Location: Pune, India

Warning in when using Remove duplicate and sort stage

Post by snt_ds »

Hi,

I'm reading a sequential file and passing it to transformer to do hash partition.
data from trnsformer is passed to Sort stage where I'm doing Sorting on natural key in ascending and timestamp in descending to get the latest record at the top then it is passed to remove duplicate stage to retain the first record for that natural key.

I'm getting the below warning :

RDUP_NATKEY_TS: When checking operator: User inserted sort "SORT_NATKEY_TS_Desc" does not fulfill the sort requirements of the downstream operator "RDUP_NATKEY_TS"


can any please let me know how to fix this warning.

Thanks
Suresh
kris007
Charter Member
Charter Member
Posts: 1102
Joined: Tue Jan 24, 2006 5:38 pm
Location: Riverside, RI

Post by kris007 »

You don't need a transformer stage to do hash partitioning. You can do the hash partitioning with in the sort stage on the input partitioning tab.
Kris

Where's the "Any" key?-Homer Simpson
Edwink
Participant
Posts: 47
Joined: Sat Aug 19, 2006 4:57 am
Location: Chennai

Post by Edwink »

suresh,

after sorting records by keys
i think u are dropping any of the keys or changing datatypes or length any of the two keys in the same stage aor innext stage.


edi
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Are you sorting the same keys, and in the same order, as required by (specified in) the Remove Duplicates stage?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vmcburney
Participant
Posts: 3593
Joined: Thu Jan 23, 2003 5:25 pm
Location: Australia, Melbourne
Contact:

Post by vmcburney »

I think your descending sort may be the problem. Most sorts by default are ascending. Your sort stage is doing an ascending, descending sort and your remove duplicates stage is probably configured for an ascending, ascending row order. You need to keep them synchronised to avoid the warning.
snt_ds
Premium Member
Premium Member
Posts: 280
Joined: Wed Oct 18, 2006 11:53 am
Location: Pune, India

Post by snt_ds »

Hi,

I'm sorting the data in ascending order for natural keys and decending order for one of the timestamp column.

same order I'm maintaining in the remove duplicate stage to get the latest record.

Thanks
Suresh
us1aslam1us
Charter Member
Charter Member
Posts: 822
Joined: Sat Sep 17, 2005 5:25 pm
Location: USA

Post by us1aslam1us »

I haven't failed, I've found 10,000 ways that don't work.
Thomas Alva Edison(1847-1931)
samsuf2002
Premium Member
Premium Member
Posts: 397
Joined: Wed Apr 12, 2006 2:28 pm
Location: Tennesse

Post by samsuf2002 »

Keys you are using in remove duplicate stage and sort should be same in order and data types . what is your last stage of the job?
hi sam here
Post Reply