Uploaded image for project: 'Pentaho Data Integration - Kettle'
  1. Pentaho Data Integration - Kettle
  2. PDI-14339

Transformation executor reads result rows from the last step in the executed transformation instead of the transformation results

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Severity: Unknown
    • Resolution: Duplicate
    • Affects Version/s: 5.2.0 GA
    • Fix Version/s: 6.0.0 GA
    • Component/s: Step
    • Story Points:
      0
    • PDI Sub-component:
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.

      Description

      Transformation executor reads result rows from the last step in the executed transformation instead of the transformation results.
      This behavior is described in the method executeTransformation() of the org.pentaho.di.trans.steps.transexecutor.TransExecutor class

      if ( meta.getOutputRowsSourceStepMeta() != null ) {
      List<StepMetaDataCombi> internalTransformationSteps = executorTrans.getSteps();
      StepInterface stepInterface = internalTransformationSteps.get( internalTransformationSteps.size() - 1 ).step;
      stepInterface.addRowListener( new RowAdapter() {
      @Override
      public void rowWrittenEvent( RowMetaInterface rowMeta, Object[] row ) throws KettleStepException

      { putRowTo( rowMeta, row, getData().getResultRowsRowSet() ); }

      } );
      }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              prepod Pavel Utko
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: