Get statement results
Read the rows of a finished statement into a data table, page by page.
Command in the Snowflake toolkit · id ooa.snowflake/fetch_results · 5 inputs (1 required), 3 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Account address (URL) | String | No | Your Snowflake account address, e.g. https://myorg-myaccount.snowflakecomputing.com. | |
| Statement handle | String | Yes | Handle from Run SQL statement. | |
| Maximum rows | Number | No | 100000 | Most rows to bring back. |
| Token | Credential | No | Access token from the vault: an OAuth token, a key-pair JWT or a programmatic access token. Or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Token type | String | No | OAUTH | Kind of token in the vault: OAUTH, KEYPAIR_JWT or PROGRAMMATIC_ACCESS_TOKEN. |
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. |