-
Book Overview & Buying
-
Table Of Contents
Pentaho Data Integration Cookbook - Second Edition - Second Edition
By :
While processing data there will come a need to alter field names, their data types or formats, and even removing fields altogether. The Select values step allows for all three functions and this recipe will show how to use it. The code for this recipe is available from the book's website.
Create a new transformation. Add a Generate Rows step and a Generate random value step to the canvas.
Create a hop between the two steps.
Open the Generate Rows step. Create a field named row_test of type String and with a default value of test. Click on OK to close the step.
Open the Generate random value step. Create two fields, one a random string (named random_num) and the other a random string (named random_string). Click on OK to close the step.
Bring over three Select values steps onto the canvas. Create hops from the Generate random value step to each of the Select values steps. When prompted to specify how to handle the stream of data, select...
Change the font size
Change margin width
Change background colour