In pentaho Data Integration, update field value in a row, depending on field values of other input rows

三世轮回 提交于 2019-12-11 23:26:20

问题


I have created one transformation in which rows are generated after several step. Now as a next step, I want to calculate field value for each row based on values of other rows (it is custom logic, so necessary to have access at all rows at one shot).

I considered to use javascript step. In this step, I can access field values of current row but how to access values for other rows. Same way, I checked with User Defined Java Class step, but stuck at the step where how to access other rows value apart from current one.


回答1:


Use Group by step to calculated rows. It has a lot of options such as SUM, Average, Max, Min, First non-null value, Cumulative sum (all rows option only!) , Cumulative average (all rows option only!), etc



来源:https://stackoverflow.com/questions/20267637/in-pentaho-data-integration-update-field-value-in-a-row-depending-on-field-val

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