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

Get Filenames step ignores parameter values

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Severity: High
    • Resolution: Fixed
    • Affects Version/s: 5.0.0 GA (5.0.0 GA Suite Release), 5.1.0 GA, 6.0.0 GA
    • Fix Version/s: 6.1.0 GA
    • Component/s: Step
    • Labels:
    • 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.
    • Operating System/s:
      Windows 8.1 (64 bit)
    • Steps to Reproduce:
      Hide
      1. Create a transformation that uses a parameter in the Get Filenames step
      2. Set a default value for the parameter
      3. Execute the transformation in Spoon, setting a new custom value for the parameter

      Expected Results: The new custom value is used in the "Get Filenames" step
      Actual Results: The original default value is used in the "Get Filenames" step

      Show
      Create a transformation that uses a parameter in the Get Filenames step Set a default value for the parameter Execute the transformation in Spoon, setting a new custom value for the parameter Expected Results: The new custom value is used in the "Get Filenames" step Actual Results: The original default value is used in the "Get Filenames" step

      Description

      When using the "Get Filenames" step with a parameter (for either the directory or wildcard fields), the step ignores any custom value that the user sets for the parameter when running in Spoon, and instead uses the default value. All other steps appear to get the custom value correctly, it is limited in this case to the "Get Filenames" step.

      In reviewing the "Get Filenames" step, we pass in a "TransMeta" variable space, which uses the default parameter values, instead of passing in the Trans or Step object itself, which will contain the updated variables and parameters that are set at runtime, as is common practice in other steps. (Github Source)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              upihin Uladzimir Pihin (Inactive)
              Reporter:
              mtucker Matt Tucker
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: