akilker
08-07-2009, 01:23 PM
I'm looking for a little bit of clarity about how result rows are treated when you chain transformations together.
I've created a sample job that hopefully illustrates my issue. There are three transformations in the job. The first lists all the files in the transformations directory and copies the rows to the result. The second transformation gets the rows out of the result and logs each row. The third transformation is identical to the second (i.e. it gets the rows out and logs each one).
If you run the job, the second transformation does exactly what I expected--it logs a single line for each job or transformation file. The third transformation, on the other hand, logs only the last row from the original results, and it logs it twice.
I'm not sure if there is some bug here or I'm misunderstanding what happens with result rows as they pass through transformations. A couple notes: I'm using "Execute for every input row" on the logging transformations. Also, Kettle seems to behaving the same way in both 3.2 stable and in the subversion trunk.
Thanks in advance.
I've created a sample job that hopefully illustrates my issue. There are three transformations in the job. The first lists all the files in the transformations directory and copies the rows to the result. The second transformation gets the rows out of the result and logs each row. The third transformation is identical to the second (i.e. it gets the rows out and logs each one).
If you run the job, the second transformation does exactly what I expected--it logs a single line for each job or transformation file. The third transformation, on the other hand, logs only the last row from the original results, and it logs it twice.
I'm not sure if there is some bug here or I'm misunderstanding what happens with result rows as they pass through transformations. A couple notes: I'm using "Execute for every input row" on the logging transformations. Also, Kettle seems to behaving the same way in both 3.2 stable and in the subversion trunk.
Thanks in advance.