Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Big Number null handling error

$
0
0
Hi All,

I'm facing null handling issue. My input is having BigNumber. If this column is null or 0 i want to set value as -99999.

For this i am using user defind java class. there i'm facing below error.
QUOTE_KEY BigNumber : There was a data type error: the data type of java.lang.Integer object [-99999] does not correspond to value meta [BigNumber]

Code:
if(get(Fields.In, "QUOTE_KEY").getBigNumber(r)==null)
{
get(Fields.Out, "QUOTE_KEY").setValue(r, -99999);
}


The same logic is working for string function. Suggestions are welcome.. :)

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>