【问题标题】:Assigning an integer value to an output row, pentaho将整数值分配给输出行,pentaho
【发布时间】:2014-03-26 12:28:18
【问题描述】:

我以非常基本的方式使用水壶。我想要做的是从 csv 文件中读取,在用户定义的 Java 类步骤中进行某种转换并将输出写入文本文件。

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

当我运行它时,我基本上得到了这个错误:

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 步骤中似乎造成问题的行(字段“值”是整数类型):

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

我该如何解决这个问题?

【问题讨论】:

  • 你在使用惰性转换吗?
  • 是的!就是这样!谢谢老兄!

标签: pentaho kettle


【解决方案1】:

所以答案是:关闭惰性转换。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-05-07
    • 2014-12-14
    • 1970-01-01
    • 2021-10-06
    • 2012-03-02
    • 1970-01-01
    • 2019-11-11
    • 1970-01-01
    相关资源
    最近更新 更多