将整数值分配给输出行pentaho [英] Assigning an integer value to an output row, pentaho
本文介绍了将整数值分配给输出行pentaho的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我以一种非常基本的方式使用水壶.我想做的是从csv文件中读取文件,在用户定义的Java类"步骤中进行某种转换,然后将输出写入文本文件.
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.
图片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>]
这是UDJC步骤中似乎引起问题的行(字段"value"为Integer类型):
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));
我该如何解决?
推荐答案
所以答案是:关闭惰性转换.
So the answer is: Turn lazy conversion off.
这篇关于将整数值分配给输出行pentaho的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文