Get statement results
Read the rows of a finished SQL statement into a data table, chunk by chunk.
Command in the Databricks toolkit · id ooa.databricks/fetch_results · 7 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. | |
| Maximum rows | Number | No | 100000 | Most rows to bring back. |
| 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. | |
| Wait (seconds) | Number | No | 0 | How long to wait for a running statement to finish; 0 fails at once if it is still running. |
| 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 |
|---|---|---|
| table | Table | Result rows. |
| row_count | Number | Number of rows in the table. |
| total_rows | Number | Rows in the full result, which can be more than max_rows. |