Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learning Pentaho Data Integration 8 CE - Third Edition

You're reading from  Learning Pentaho Data Integration 8 CE - Third Edition

Product type Book
Published in Dec 2017
Publisher Packt
ISBN-13 9781788292436
Pages 500 pages
Edition 3rd Edition
Languages

Table of Contents (23) Chapters

Title Page
Credits
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface
Getting Started with Pentaho Data Integration Getting Started with Transformations Creating Basic Task Flows Reading and Writing Files Manipulating PDI Data and Metadata Controlling the Flow of Data Cleansing, Validating, and Fixing Data Manipulating Data by Coding Transforming the Dataset Performing Basic Operations with Databases Loading Data Marts with PDI Creating Portable and Reusable Transformations Implementing Metadata Injection Creating Advanced Jobs Launching Transformations and Jobs from the Command Line Best Practices for Designing and Deploying a PDI Project

Identifying use cases to implement metadata injection


So far, we used injection to deal with dynamic sources. The opposite could have been dealing with dynamic targets. An example of this is generating files with a variable number of fields.

Metadata injection can also be used to reduce repetitive tasks. A typical example is the loading of text files into staging tables. Suppose that you have a text file that you want to load into a staging table. Besides the specific task of loading the table, you want to apply some validations—for example, checking for non-null values, storing audit information such as user and timestamp for the execution, counting the number of processed rows and log in a result table, among other tasks. 

Now suppose that you have to do this for a considerable quantity of different files. You could take this process as the base and start copying and pasting, adapting the process for each file. This is, however, not a good idea for a list of reasons:

  • It is time-consuming
  • It...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}