Page 1 of 1

how to avoid about sort requirement related warning

Posted: Thu Feb 23, 2006 3:26 am
by Nripendra Chand
Hi,

I'm getting following msg in a remove duplicate stage.
nkrmdup: When checking operator: User inserted sort "lnkrmdup.lnkrmdup_Sort" does not fulfill the sort requirements of the downstream operator "lnkrmdup"
I'm sorting the input records (using hash partition) on the same keys on which I'm removing duplicates. So why this msg is still coming? Can I avoid this msg?

-Nripendra

Posted: Thu Feb 23, 2006 6:29 am
by kumar_s
Pls recheck. Is it hash partitoned before/in sort stage on the key.
Is the key of the sort stage is same as the key of the remove duplicate stage as well as the partiton mentioned. Not one more or not one less.
Is the same partiton maintained from sort to remove duplicate stage. Is there any change in datatype on the key like unicode, for char to varchar or interger to decimal.....

Posted: Thu Feb 23, 2006 10:24 am
by kwwilliams
Also make sure that you specify your remove duplicate with the same details as the sort, so you could sort it in the same order and have one that is case sensistive and the remove duplicate that is not. It will throw that same error because it has detected that the data is sorted differently than the sort stage you specified.

Posted: Thu Feb 23, 2006 10:05 pm
by Nageshsunkoji
Hi,

Further Inputs from my side.

If you are doing Hash Partition in Sort stage then keep 'SAME' as a partition method in the remove duplicate stage.

Regards
Nagesh.

Posted: Fri Feb 24, 2006 12:56 am
by Nripendra Chand
I'm sorting using hash in the remove duplicate stage only. The order of keys is also same. Do i need to sort prior to this stage?

-Nripendra

Posted: Fri Feb 24, 2006 2:10 am
by Nageshsunkoji
Hi,

Just try this out, do the hash partition in Sortstage and select 'SAME' partition type in Remove Duplictae stage. I think it will solve your problem.

Regards
Nagesh.

Posted: Fri Feb 24, 2006 8:50 am
by kumar_s
What is the key that you have mentioned in the internal sort and the key for remove duplicate. Make sure both are in the same order.
You can acheive the same via sort stage also.