Assigning an integer value to an output row, pentaho

两盒软妹~` 提交于 2019-12-10 21:04:13

问题


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?


回答1:


So the answer is: Turn lazy conversion off.



来源:https://stackoverflow.com/questions/22661052/assigning-an-integer-value-to-an-output-row-pentaho

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!