Page 1 of 1

source type dfloat to result type int32

Posted: Wed Aug 25, 2010 3:02 am
by ysrini9
Hi All,

I am getting below warining message and I have delcared as numeric

When checking operator: When binding output interface field "DUPLICATE_REC_COUNT" to field "DUPLICATE_REC_COUNT": Implicit conversion from source type "dfloat" to result type "int32": Possible range/precision limitation.

Please help me on this ,how to resolve.

Thanks and Reagrds
Srini

Posted: Wed Aug 25, 2010 4:00 am
by ray.wurlod
By not mapping a dfloat (which can be an extremely large number) into an int32 (which can't be bigger than about 2,700 million).

Posted: Wed Aug 25, 2010 4:30 am
by babu manam
ray.wurlod wrote:By not mapping a dfloat (which can be an extremely large number) into an int32 (which can't be bigger than about 2,700 million). ...
i din't understand plz explain

Posted: Wed Aug 25, 2010 6:26 am
by chulett
Somewhere there is a large number mapped to a smaller number and it won't all fit. Typically this happens with Aggregator output which, if not explicitly handled, will output its results in dfloat format.

Posted: Thu Aug 26, 2010 12:51 am
by ysrini9
Hi All,

I am getting this warning message if using Aggregator stage output in 8.1

When checking operator: When binding output interface field "DUPLICATE_REC_COUNT" to field "DUPLICATE_REC_COUNT": Implicit conversion from source type "dfloat" to result type "int32": Possible range/precision limitation.

All the places data tpe is interger(10)

Please help me on this

Thanks and Regards
Srini

Posted: Thu Aug 26, 2010 1:08 am
by ray.wurlod
But it's dfloat within the Aggregator stage.

Investigate the Decimal Output property and the Preserve Data Type property.

Posted: Fri Aug 27, 2010 12:07 pm
by natashab
When performing an aggregation using the aggregator stage,the output column's datatype will be dfloat by default(internally) though you have mentioned the DUPLICATE_REC_COUNT field's datatype as Integer(10) .
So, mention the aggregation field's output datatype as Double(20) and then use a transformer stage to convert it to integer 10.Else this warning will occur.

Posted: Fri Aug 27, 2010 4:03 pm
by ray.wurlod
U doesn't have the problem. The second person personal pronoun in English is spelled "you". U is one of our posters.