Skip to main content

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​

InputTypeRequiredDefaultWhat it is
Account address (URL)StringNoYour Snowflake account address, e.g. https://myorg-myaccount.snowflakecomputing.com.
Statement handleStringYesHandle from Run SQL statement.
Maximum rowsNumberNo100000Most rows to bring back.
TokenCredentialNoAccess 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 typeStringNoOAUTHKind of token in the vault: OAUTH, KEYPAIR_JWT or PROGRAMMATIC_ACCESS_TOKEN.

Outputs​

OutputTypeWhat it is
tableTableResult rows.
row_countNumberNumber of rows in the table.
total_rowsNumberRows in the full result, which can be more than max_rows.