Get statement status
Check whether a SQL statement that was left running has finished.
Command in the Databricks toolkit · id ooa.databricks/get_statement_status · 5 inputs (1 required), 3 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Workspace address (URL) | String | No | Workspace address, e.g. https://adb-1234567890123456.7.azuredatabricks.net or https://dbc-a1b2c3d4-e5f6.cloud.databricks.com. | |
| Statement ID | String | Yes | Id from Run SQL statement. | |
| Access token | Credential | No | Databricks personal access token or OAuth token from the vault. Or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Client ID | String | No | Application (client) id of a service principal, to sign in with OAuth instead of a personal access token (G6). | |
| Client secret | Credential | No | The service principal's OAuth secret from the vault (G6). |
Outputs
| Output | Type | What it is |
|---|---|---|
| status | String | PENDING, RUNNING, SUCCEEDED, FAILED, CANCELED or CLOSED. |
| message | String | Error text when the statement failed. |
| total_rows | Number | Rows in the result once it succeeded. |