...
- The original table that is used as the default value in any custom SQL query remains the default table whenever the custom SQL dataset is used.
- During job execution on a dataset of parameterized tables, if the parameterized SQL query returns data from a table from the default table,
expects that the schema of the new table matches the schema of the original default table.D s platform - If the schemas do not match, schema mismatch errors may be reported.
- During job execution on a dataset of parameterized tables, if the parameterized SQL query returns data from a table from the default table,
- Parameterizing the column project list in the
SELECT
portion of a custom SQL statement is not supported. - Schema refresh of a parameterized dataset using custom SQL is not supported.
...
- In the
, click Library Library for Data in the left nav bar.D s webapp type Portal - In the Library for Data page, click Import Data.
- From the left side of the Import Data page, select the relational connection from which to import.
- Depending on the type of relational connection, you may need to select the database or schema to browse.
- Locate the tables to import. Take note of the table name or names.
- Click Create Dataset with SQL. The Create Dataset with SQL window is displayed.
...
- When a job is executed, the currently specified variable value is passed to the running environment. By default, the value that you specify as part of the dataset creation process is provided.
- You can override this value:
- You As needed, you can specify an override for a variable parameter through Flow View.
- For any specific job run, you can specify an override value through the Run Job page.
- In this manner, you can specify the exact data that you wish to retrieve at the flow- or job-level.
Steps:
- Create a custom dataset using SQL. For more information, see Create a Custom SQL Dataset above.
- In the Create Dataset with SQL window, enter a
SELECT*
statement to retrieve data from the specified table. Click Validate SQL to verify that the query is properly specified. Now, highlight the part of the query that you wish to parameterize. Click the Variable icon.
D caption Define Variable Parameter
In the Variable dialog, enter the following details:
Tip Tip: Type
env.
to see the environment parameters that can be applied. These parameters are available for use by each user in the environment.Name: Enter a display name for the variable.
- Default value : Enter a default value for the parameter.
Click Save to save the parameter.
To verify that your SQL is still valid, click Validate SQL .
If the SQL is valid, click Create Dataset.
...