Snowflake · Arazzo Workflow
Snowflake Submit SQL Statement and Poll for Results
Version 1.0.0
Submit a SQL statement for execution, poll its status, then fetch the result set.
Provider
Workflows
submit-sql-statement-and-poll
Submit a SQL statement, poll its execution status, and retrieve the results.
Submits a single SQL statement bound to a warehouse/database/schema/role, then branches on the response: a 200 returns the result set directly while a 202 hands back a statement handle that is polled via getStatementStatus until the statement finishes.
1
submitStatement
submitStatement
Submit the SQL statement synchronously. If execution completes quickly the result set is returned with a 200; otherwise a 202 is returned with a statement handle to poll.
2
pollStatus
getStatementStatus
Check the status of the statement execution by its handle. A 202 means the statement is still in progress; a 200 means it finished and the requested partition of the result set is returned.