Page 1 of 1

How to convert Double datatype to Decimal from the Aggregat?

Posted: Wed Apr 21, 2010 10:43 pm
by vijaykumarpj1
Hi,

Could you please let me knw How to convert Double datatype to Decimal from the Aggregator for the Count operation?

Thanks,
Vijaykumar P J

Posted: Wed Apr 21, 2010 10:47 pm
by ray.wurlod
There is a property called something Default Decimal Output that can be set globally (within the Aggregator stage) or for individual columns. You set the precision and scale for the decimal number, separated by a comma. You can also use this property if the target field is an integer of some kind (scale is zero in this case, of course).

Posted: Thu Apr 22, 2010 11:02 am
by vijaykumarpj1
ray.wurlod wrote:There is a property called something Default Decimal Output that can be set globally (within the Aggregator stage) or for individual columns. You set the precision and scale for the decimal number, s ...
Hi Ray,

That is the property only if we select the operation as Calculation. This option will not be available if we are doing Count operation.


Thanks,
Vijaykumar P J

Posted: Fri Apr 23, 2010 4:51 pm
by ray.wurlod
That's true. When Count is the operation you have to accept Double as the output data type (or tolerate the warning message). You can change it with a downstream stage, such as a Modify stage.