Formula
Workshop - Formula
The Formula step in Pentaho Data Integration (PDI) is a powerful transformation component that allows you to create new fields or modify existing ones using mathematical expressions, string manipulations, and logical operations.
It provides a JavaScript-like syntax for writing formulas that can perform calculations, concatenate text, apply conditional logic, and execute various built-in functions on your data rows. The Formula step is particularly useful for data cleansing, creating calculated fields, performing date/time operations, and implementing business rules within your data transformation workflows.

Generate rows
Generate rows outputs a specified number of rows. By default, the rows are empty; however, they can contain several static fields. This step is used primarily for testing purposes. It may be useful for generating a fixed number of rows, for example, you want exactly 12 rows for 12 months.
Sometimes you may use Generate Rows to generate one row that is an initiating point for your transformation. For example, you might generate one row that contains two or three field values that you might use to parameterize your SQL and then generate the real rows.
Used to generate some testing data:
a = 1
b = 2
booking_type = R

Last updated