Skip to main content

statement_execution

Operations on a statement_execution resource.

Overview

Namestatement_execution
TypeResource
Iddatabricks_workspace.dbsql.statement_execution

Fields

NameDatatype
manifestobject
resultobject
statement_idstring
statusobject

Methods

NameAccessible byRequired ParamsDescription
getstatementSELECTstatement_id, deployment_nameThis request can be used to poll for the statement's status. When the
cancelexecutionEXECstatement_id, deployment_nameRequests that an executing statement be canceled. Callers must poll for status to see the terminal state.
executestatementEXECdeployment_nameExecute a SQL statement and optionally await its results for a specified time.

SELECT examples

SELECT
manifest,
result,
statement_id,
status
FROM databricks_workspace.dbsql.statement_execution
WHERE statement_id = '{{ statement_id }}' AND
deployment_name = '{{ deployment_name }}';