Hello World

Simple transformation to illustrate key concepts

In this Lab, we're going to create the classic “Hello World” Transformation. The process will help define your own workflow for building data pipelines.

• Learn how to create a new Transformation.

• Add Transformation 'Steps'.

• A 'Hop'.

• And finally a 'Note'.

To create a new transformation

  1. In Spoon, click File > New > Transformation.

Any one of these actions opens a new Transformation tab for you to begin designing your transformation.

  • By clicking New, then Transformation

  • By using the CTRL-N hot key

Generate rows outputs a specified number of rows. By default, the rows are empty; however, they can also contain several static fields. This step is used primarily for testing purposes. It may be useful for generating a fixed number of rows, for example, if you require exactly 12 rows for 12 months.

Sometimes you may use Generate Rows to generate one row that is an initiating point for your transformation.

  1. To add the Generate Rows step, expand the ‘Input’ category in the Design tab, and drag the step onto the canvas.

💡Alternatively, enter ‘Generate Rows’ into the search bar.

  1. Double-click on the Generate Rows to open step properties.

Ensure the following details are configured:

Step name

gr_hello-world

Limit

10

Name

message

Type

string

Value

hello world

Before we close this dialog and continue creating the transformation, let’s make certain the Step generates the data we expect.

  1. Click Preview button. The ‘Enter preview size’ dialog is displayed.

  1. In the ‘Enter preview size’ dialog, click the [OK] button.

  2. Verify 10 rows of data with the message you entered is displayed, and then click the [OK] button to close the ‘Examine preview data’ dialog.

  3. Click OK button to close the ‘Generate Rows’ dialog.

➡️ Next: Configure the Dummy Step

Last updated