Book Image

Pentaho Data Integration Beginner's Guide - Second Edition - Second Edition

By : María Carina Roldán
Book Image

Pentaho Data Integration Beginner's Guide - Second Edition - Second Edition

By: María Carina Roldán

Overview of this book

Capturing, manipulating, cleansing, transferring, and loading data effectively are the prime requirements in every IT organization. Achieving these tasks require people devoted to developing extensive software programs, or investing in ETL or data integration tools that can simplify this work. Pentaho Data Integration is a full-featured open source ETL solution that allows you to meet these requirements. Pentaho Data Integration has an intuitive, graphical, drag-and-drop design environment and its ETL capabilities are powerful. However, getting started with Pentaho Data Integration can be difficult or confusing. "Pentaho Data Integration Beginner's Guide - Second Edition" provides the guidance needed to overcome that difficulty, covering all the possible key features of Pentaho Data Integration. "Pentaho Data Integration Beginner's Guide - Second Edition" starts with the installation of Pentaho Data Integration software and then moves on to cover all the key Pentaho Data Integration concepts. Each chapter introduces new features, allowing you to gradually get involved with the tool. First, you will learn to do all kinds of data manipulation and work with plain files. Then, the book gives you a primer on databases and teaches you how to work with databases inside Pentaho Data Integration. Moreover, you will be introduced to data warehouse concepts and you will learn how to load data in a data warehouse. After that, you will learn to implement simple and complex processes. Finally, you will have the opportunity of applying and reinforcing all the learned concepts through the implementation of a simple datamart. With "Pentaho Data Integration Beginner's Guide - Second Edition", you will learn everything you need to know in order to meet your data manipulation requirements.
Table of Contents (26 chapters)
Pentaho Data Integration Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Best Practices
Index

Time for action – keeping a history of changes in products by using the Dimension lookup/update step


Let's load a puzzles dimension along with the history of the changes in puzzles attributes:

  1. Create a new transformation.

  2. Drag a Table input step to the work area and double-click on it.

  3. As Connection, select js.

  4. In the SQL area type the following query:

    SELECT pro_code
         , man_code
         , pro_name
         , pro_theme
    FROM  products
    WHERE pro_type LIKE 'PUZZLE'
  5. Click on OK.

  6. Add an Add constants step, and create a hop from the Table input step toward it.

  7. Use the step to add a Date field named changedate. As format, type dd/MM/yyyy and as value, type 01/10/2009.

  8. Expand the Data Warehouse category of steps.

  9. Select the Dimension lookup/update step and drag it to the canvas.

  10. Create a hop from the Add constants step to this new step.

  11. Double-click on the Dimension lookup/update step.

  12. As Connection, select dw.

  13. As Target table, type lk_puzzles.

  14. Fill the Key fields, as shown in the following screenshot:

  15. As Technical...