Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Assigning an integer value to an output row, pentaho

Tags:

pentaho

kettle

I'm using kettle in a very basic way. What I want to do is read from csv file, do some kind of transformation in User Defined Java Class step and write output to a text file.

a picture http://imageshack.com/a/img34/1669/vo18.png

When I run this I essentially get this error:

value Integer<binary-string> : There was a data type error: the data type of java.lang.Long object [100] does not correspond to value meta [Integer<binary-string>]

This is the line in UDJC step that seems to make the problem (field "value" is of Integer type):

get(Fields.Out, "value").setValue(out_row,new Long(100));

How can I solve this?

like image 471
MarsaPalas Avatar asked Dec 04 '25 05:12

MarsaPalas


1 Answers

So the answer is: Turn lazy conversion off.

like image 87
Brian.D.Myers Avatar answered Dec 08 '25 16:12

Brian.D.Myers



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!