Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Talend Folks,
Hi there,
This sort of thing can be done very easily in a tJavaFlex component, as follows.
The tFixedFlowInput generates rows with a single Integer column:
Add a new column to the output schema of th tJavaFlex component for the LAG value:
And the the following code will output the previous (LAG) value, before setting it to the current value of newColumn, which will be available when the next row is processed:
Regards,
Chris
Hi there,
This sort of thing can be done very easily in a tJavaFlex component, as follows.
The tFixedFlowInput generates rows with a single Integer column:
Add a new column to the output schema of th tJavaFlex component for the LAG value:
And the the following code will output the previous (LAG) value, before setting it to the current value of newColumn, which will be available when the next row is processed:
Regards,
Chris