Aggregrator stage behaving indifferent

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
supraja10
Participant
Posts: 2
Joined: Wed Dec 02, 2009 11:38 pm

Aggregrator stage behaving indifferent

Post by supraja10 »

Hi,

In my job, I have a input stage and pass it to aggregator stage.
My aggregator sometimes gives correct value and sometimes not. There is no change in data

I have values in below manner :
GroupKey COL_1 COL_2
a 8.127035 2.608613
a 3.499208 -3.6E-5

Sometimes it aggregrates and displays the result as below
GroupKey COL_1 COL_2
a 11.626243 2.608577

At sometimes, It displays the result in below manner
GroupKey COL_1 COL_2
a 8.127035 2.608613

There is no aggregation taking place here, It displays only one record and other record is not found in output.
Please suggest.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

How many nodes are you running on and how are you partitioning the data?
-craig

"You can never have too many knives" -- Logan Nine Fingers
supraja10
Participant
Posts: 2
Joined: Wed Dec 02, 2009 11:38 pm

Post by supraja10 »

We are using two nodes and applying Sort method
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

How are you partitioning the data?

"Sort method" is how you are asking the Aggregator stage to work (and requires that the incoming data are sorted).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
soumya5891
Participant
Posts: 152
Joined: Mon Mar 07, 2011 6:16 am

Post by soumya5891 »

First use a sort stage ,sort on group keys.Make the partition to hash,with the same order as the sorting order.

Now use a aggregator stage with partition as same.Hope it will works.
Soumya
Post Reply