OptionalerrorOptionalsqlSQLSTATE error code returned when the statement execution fails.
Only populated when the statement status is FAILED.
OptionalstateStatement execution state:
PENDING: waiting for warehouseRUNNING: runningSUCCEEDED: execution was successful, result data available for fetchFAILED: execution failed; reason for failure described in accompanying error messageCANCELED: user canceled; can come from explicit cancel call, or timeout with
on_wait_timeout=CANCELCLOSED: execution successful, and statement closed; result no longer available for fetch
The status response includes execution state and if relevant, error information.