Time for action—running and previewing the hello_world transformation

Let's do some testing and explore the results:

  1. Open the hello_world transformation.
  2. Edit the Generate Rows step, and change the limit from 10 to 1000 so that it generates 1,000 rows.
  3. Select the Logging tab window at the bottom of the screen.
  4. Click on Run.
  5. In the Log level drop-down list, select RowLevel detail.
  6. Click on Launch.
  7. You can see how the logging window shows every task in a very detailed way.
    Time for action—running and previewing the hello_world transformation
  8. Edit the Generate Rows step, and change the limit to 10,000 so that it generates 10,000 rows.
  9. Select the Step Metrics.
  10. Run the transformation.
  11. You can see how the numbers change as the rows travel through the steps.
    Time for action—running and previewing the hello_world transformation

What just happened?

You did some tests with the hello_world transformation and saw the results in the Execution Results window.

Previewing the results in the Execution Results window

The Execution Results window shows you what is happening while you preview or run a transformation.

The Logging tab shows the execution of your transformation, step by step. By default, the level of the logging detail is Basic but you can change it to see different levels of detail—from a minimal logging (level Minimal) to a very detailed one (level RowLevel).

The Step Metrics tab shows, for each step of the transformation, the executed operations and several status and information columns. You may be interested in the following columns:

Column

Description

Read

Contains the number of rows coming from previous steps

Written

Contains the number of rows leaving from this step toward the next

Input

Number of rows read from a file or table

Output

Number of rows written to a file or table

Errors

Errors in the execution. If there are errors, the whole row becomes red

Active

Tells the current status of the execution

In the example, you can see that the Generate Rows step writes rows, which then are read by the Dummy step. The Dummy step also writes the same rows, but in this case those go nowhere.

Pop quiz—PDI basics

For each of the following, decide if the sentence is true or false:

  1. There are several graphical tools in PDI, but Spoon is the most used.
  2. You can choose to save Transformations either in files or in a database.
  3. To run a Transformation, an executable file has to be generated from Spoon.
  4. The grid size option in the Look and Feel windows allows you to resize the work area.
  5. To create a transformation, you have to provide external data.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.22.51.241