SQL Execute
This operator is used to run a SQL statement for creating a data source that can be used by the downstream operators.
Information at a Glance
|
Parameter |
Description |
|---|---|
| Category | Tools |
| Data source type | TIBCO® Data Virtualization |
| Send output to other operators | Yes |
| Data processing tool | TIBCO® DV, Apache Spark 3.2 or later |
The SQL statement executed inside this operator does not have any dependency on its preceding or succeeding operator.
The connection only ensures its execution sequence within the analytic workflow.
Input
The SQL Execute operator does not take any input. It is a source operator.
Configuration
The following table provides the configuration details for the SQL Execute operator.
| Parameter | Description |
|---|---|
| Notes | Notes or helpful information about this operator's parameter settings. When you enter content in the Notes field, a yellow asterisk appears on the operator. |
| SQL File | Select the SQL file from the dropdown list to run. The list includes all the SQL (.sql) files in the current workspace. You can also create a SQL file. For more information on creating a SQL file, see Creating a SQL Work File. |
| Output Schema | Specify the schema for the output table. |
| Output Table | Specify the table path and name where the output of the results is generated. By default, this is a unique table name based on your user ID, workflow ID, and operator. |
| Store Results | When set to Yes, it enables the operator to save the results. When set to No, it disables the operator to save the results. |
Output
Example
The following example illustrates the data set that corresponds to the SQL statements using the SQL Execute operator. This data set can be used by the downstream operators in a workflow.
-
SQL File: golf.sql
-
Output Schema: Datasets_shared
-
Store Results: Yes