SYSTEM$GET_RESULTSET_STATUS
functiondeferredQueries & DMLReturns the status of a RESULTSET in a Snowflake Scripting stored procedure. This function can be useful for getting the status an asynchronous child job that is running for a RESULTSET.
Syntax
SYSTEM$GET_RESULTSET_STATUS( <resultset_name> )
Parameters
| Name | Required | Description |
|---|---|---|
resultset_name | required | The name of the RESULTSET. |
Returns
This function returns the status of the RESULTSET in a value of type VARCHAR. The following status values are possible:
Usage notes
- This function can only be called in a Snowflake Scripting block.
Known gaps
- Asynchronous child jobs in Snowflake Scripting run synchronously in the emulator, so there is no pending job state to report.