Create DB table
Create tables ..

Create a new transformation
Use any of these options to open a new transformation tab:
Select File > New > Transformation
Use
Ctrl+N(Windows/Linux) orCmd+N(macOS)
Load Sales Data
Load sales data from a CSV file into STG_SALES_DATA.
Adjust field lengths to avoid truncation.

Follow the steps outlined below:
Start Pentaho Data Integration.
Drag the CSV file input step onto the canvas.
Open the CSV file input properties dialog box.
Configure these key fields:
Step name:
csvi-sales_dataFile name:
${Internal.Transformation.Filename.Directory}/sales_data.csvDelimiter:
,(comma)Lazy conversion: clear
Header row present: select
Ensure the following details are configured, as outlined below:

Click on the Get Fields button.
Select OK.
Drag the Table Output step onto the canvas.
Open the Table Output properties dialog box. Ensure the following details are configured, as outlined below:

Click on the Database fields.
Click on the ‘Get Fields’ button.

Click on the SQL button.

Select Execute.
Select OK to close all dialogs.
Click the Run button in the Canvas Toolbar.
Confirm the table exists in your
sampledatadatabase.

Load Orders
Load orders data from a delimited file into STG_ORDERS_MERGED.
Adjust field lengths to avoid truncation.

Follow the steps outlined below:
Drag the CSV file input step onto the canvas.
Open the CSV file input properties dialog box.
Ensure the following details are configured, as outlined below:



Drag the Table Output step onto the canvas.
Open the Table Output properties dialog box. Ensure the following details are configured, as outlined below:

Click on the Database fields.
Click on the ‘Get Fields’ button.

Click on the SQL button.

Click Execute.
Select OK to close all dialogs.
Click the Run button in the Canvas Toolbar.
Confirm the table exists in your
sampledatadatabase.

Last updated
Was this helpful?
