Kettle: Multiple putRows() in processRow() correctly?

て烟熏妆下的殇ゞ 提交于 2019-12-04 18:28:44

The problem is with the following line (first line in the for loop):

Object[] out_row = createOutputRow(r, data.outputRowMeta.size());

It should be replaced with these three lines:

Object[] out_row = RowDataUtil.allocateRowData(data.outputRowMeta.size());
for (int j=0; j<r.length; ++j)
    out_row[j] = r[j];

UPDATE: A more easy way which is essentially the same:

Object[] out_row = RowDataUtil.createResizedCopy(r, data.outputRowMeta.size());
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!