Generate Row Number Field with multiple partition not workin
Posted: Wed Dec 25, 2013 9:26 am
Hi All,
I use the following formula to generate the row number in sequence by using transformer stage with 2 partition.
(@INROWNUM - 1) * @NUMPARTITIONS + @PARTITIONNUM + 1
Say i have 100 record coming from input.up to 70 record the numer coming in sequence like below
1
2
3
4
.
.
.
70 but after 70 it is coming like
71
73
75
.
.
.
101
when i monitored i found the distribution in partition is not equal...Its there any way i can make partition as equal so generated number will be in sequence..My requirement should be in sequence....
I use the following formula to generate the row number in sequence by using transformer stage with 2 partition.
(@INROWNUM - 1) * @NUMPARTITIONS + @PARTITIONNUM + 1
Say i have 100 record coming from input.up to 70 record the numer coming in sequence like below
1
2
3
4
.
.
.
70 but after 70 it is coming like
71
73
75
.
.
.
101
when i monitored i found the distribution in partition is not equal...Its there any way i can make partition as equal so generated number will be in sequence..My requirement should be in sequence....