For the complete documentation index, see llms.txt. This page is also available as Markdown.

Parameters

Passing parameters ..

Parameters

If you need to create a dataset with data coming from a database, you can do it just by using a Table Input step.

If the SELECT statement that retrieves the data doesn't need parameters, you simply write it in the Table Input setting window and proceed.

However, most of the times you need flexible queries—queries that receive parameters.

database queries - Parameters

As we're passing the parameters in a single row, we have to careful and ensure the datastream fields are mapped in the correct order according to the WHERE clause.

  1. Open the Data grid step: Parameters (1 row).

Data grid - Parameters (1 row)
  1. Open the Table input step - Steel Wheels Products 1.

Table input - parameters ? - single row
Preview data - Parameters (1 row)

Suppose that you not only want to list the Classic Cars in 1:10 scale, but also the Motorcycles in 1:10 and 1:12 scales. You don't have to run the transformation three times in order to do this. You can have a dataset with three rows, one for each set of parameters.

  1. Open the Data grid step: Parameters (several rows).

Data grid - Parameters (serveral rows)
  1. Open the Table input step - Steel Wheels Products 2.

Table input - parameters ? - several rows
Preview data - Parameters (serveral rows)

It's also possible to receive the parameter values in several rows. Instead of a row, you had one parameter by row.

  1. Open the Data grid step: Parameters (several rows).

Data grid - Parameters (1 by row)
  1. Open the Table input step - Steel Wheels Products 3.

Table input - parameters ? - 1 by row
Preview data - Parameters (1 by row)

Note that this approach is less flexible than the Parameters (1 row). For example, if you have to provide values for parameters with different data types, you will not be able to put them in the same column and different rows.

Last updated

Was this helpful?