Time for action – loading a region dimension with a Combination lookup/update step
In this tutorial you will load a dimension that stores geographical information.
- Launch Spoon.
- Create a new transformation.
- Drag a Table input step to the canvas and double-click it.
- As connection select
js
. - In the SQL area type the following query:
SELECT ci.city_id, city_name, country_name FROM cities ci, countries co WHERE ci.cou_id = co.cou_id
- Click on OK.
- Expand the Data Warehouse category of steps.
- Select the Combination lookup/update step and drag it to the canvas.
- Create a hop from the Table input step to this new step.
- Double-click the Combination lookup/update step.
- As Connection select
dw
. - As Target table browse and select
lk_regions
or simply type it. - Enter
id
as ...
Get Pentaho 3.2 Data Integration Beginner's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.