SYSTEM$SET_RETURN_VALUE

functionsupportedUDFs, procedures, tasks, alerts, scripting

docs.snowflake.com ↗

System functions

Explicitly sets the return value for a task. In a task graph, a task can call this function to set a return value. Another task that identifies this task as the predecessor task (using the AFTER keyword in the task definition) can retrieve the return value set by the predecessor task using SYSTEM$GET_PREDECESSOR_RETURN_VALUE.

Syntax

SYSTEM$SET_RETURN_VALUE( '<string_expression>' )

Parameters

NameRequiredDescription
string_expressionrequiredThe string to set as the return value. The string size must be <= 10 kB (when encoded in UTF8).