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

Note: This operator can only be used with TIBCO® Data Virtualization and Apache Spark 3.2 or later.

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

Visual Output
None.
Data Output
A data set that corresponds to the SQL statements.

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.

Data
None.
Parameter Setting
The parameter settings for the SQL Execute operator are as follows:
  • SQL File: golf.sql

  • Output Schema: Datasets_shared

  • Store Results: Yes

Output
The following figure displays the result for the SQL Execute operator.
Dataset operator output - golfnew