Execute SQL statement action
- 最終更新日2026/05/06
This action enables you to execute a SQL query on a Databricks SQL warehouse using an existing Databricks session.
Settings
- Use the Session field to select
one of the following options:
- Session name: Enter the name of the session
used during Connect
action.
Click the Insert a value icon to select an existing variable that you have used to store the default session name.
- Variable: Enter the name of the variable that you have used to store the session name.
- Session name: Enter the name of the session
used during Connect
action.
- Specify the ID of the Databricks SQL warehouse where the query will be executed. You can obtain the
warehouse ID from Databricks workspace settings.Note: Ensure that the warehouse is running and accessible.
- Specify the SQL query to execute on the Databricks warehouse in the SQL
statement field.
Click the Insert a value icon to select an existing variable. For example,
SELECT * FROM sales LIMIT 10; - Select from the following parameter options.
- On the Dictionary tab, click
Add to add dictionary parameters.
Parameter Description Type Specify the data type of the parameter value. Supported data types are: - Any
- String
- Number
- Datetime
- Boolean
Key Enter the name of the parameter as referenced in the SQL statement. Value (Optional) Enter a value or click Insert a value to select a variable. - On the Variable tag, enter the variable or click Insert a value to select a variable.
- On the Dictionary tab, click
Add to add dictionary parameters.
- In the Rows limit field, specify the maximum number of rows that you want to return from the query.
- Enter a query timeout value.
When the specified time expires, the statement execution stops even if the execution is not completed.
- In the Assign output to a variable field, select one
of the following options to store the result of the SQL execution.
- Multiple variables: Stores the output in
multiple variables by providing the key and the variable to which
the key is mapped. This variable can be of any type, such as
String, Number,
Datetime.
Click Add variable mapping to add key and map it to a variable. If the variable is not available in the list, click Create variable.
- Dictionary: Select a dictionary variable to hold the output if the SQL statement returns a value. If the variable is not available in the list, click Create variable.
- Multiple variables: Stores the output in
multiple variables by providing the key and the variable to which
the key is mapped. This variable can be of any type, such as
String, Number,
Datetime.