OK,
I am using the aggregator stage and after aggregating the specified column, I want to the other columns to be outputted also, in the output link so I can carry them downstream. Any ideas?
thanks, dtatem
Aggregator Stage
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Same rules as SQL - every input column must either be grouped or have an aggregate function applied.
Think about it - fewer rows out than in, because of grouping. From which input rows would your passthrough columns be selected?
You could create a "fork join" design - split your data into two streams (Copy stage), run one stream through Aggregator, then bring both streams back together in an inner join in a Join stage.
Think about it - fewer rows out than in, because of grouping. From which input rows would your passthrough columns be selected?
You could create a "fork join" design - split your data into two streams (Copy stage), run one stream through Aggregator, then bring both streams back together in an inner join in a Join 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.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
I forgot to mention something, after the aggregation is done on that input column, I want only one output showing me the Total sum of all rows after the aggregation, plus the other columns from the input data[no aggregation on these columns]
I have create a Groupkey for the aggregation plus the column which is to be aggregated. I guess I would have to join the aggregated value back to the other input rows so I can carry them downstream.
Thanks you all are a BIG help..
--dtatem
I have create a Groupkey for the aggregation plus the column which is to be aggregated. I guess I would have to join the aggregated value back to the other input rows so I can carry them downstream.
Thanks you all are a BIG help..
--dtatem
-
- Participant
- Posts: 612
- Joined: Thu May 03, 2007 4:59 am
- Location: Melbourne
Yes you guessed it right
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
Other option would be to do the 'aggregation' using a Transformer stage and thereby achieve the same.dtatem wrote:I forgot to mention something, after the aggregation is done on that input column, I want only one output showing me the Total sum of all rows after the aggregation, plus the other columns from the input data[no aggregation on these columns]
I have create a Groupkey for the aggregation plus the column which is to be aggregated. I guess I would have to join the aggregated value back to the other input rows so I can carry them downstream.
Thanks you all are a BIG help..
--dtatem
-
- Participant
- Posts: 467
- Joined: Tue Mar 20, 2007 6:36 am
- Location: Chennai
- Contact:
As Josh said,
You can use a fork and join to get the output what you desire.
You can use a fork and join to get the output what you desire.
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>