- Categories:
System functions (System Information)
SYSTEM$GET_TASK_GRAPH_CONFIG¶
Returns information from a task graph configuration.
For information about storing configuration values in a task graph, see CREATE TASK … CONFIG.
Syntax¶
Arguments¶
configuration_pathOptional path of the configuration value to return.
Uses the same syntax as Snowflake queries for semi-structured data. See GET_PATH for more information.
Examples¶
The following example creates a task that defines a configuration and then uses the SYSTEM$GET_TASK_GRAPH_CONFIG function to retrieve values from the configuration.
Example: Pass configuration information to another task in a task graph¶
You can pass configuration information by using a JSON object that other tasks in a task graph can read.
Use the syntax CREATE/ALTER TASK … CONFIG to set, unset, or modify the configuration information in the root task. Then, use the SYSTEM$GET_TASK_GRAPH_CONFIG function to retrieve it.
The following example shows how you can use a JSON object to pass configuration information and store it in a table: