TASK_GRAPH_CHANGES

functionnot supportedUDFs, procedures, tasks, alerts, scriptingpreview

docs.snowflake.com ↗

Information SchemaTable functions

This table function previews the uncommitted changes for a task graph object — the difference between the live (possibly-staged) definition of the graph and its latest committed version. Use it before running ALTER TASK GRAPH ... COMMIT to see exactly what a commit would change.

Syntax

TASK_GRAPH_CHANGES(
      TASK_GRAPH_NAME => '<string>' )

Parameters

NameRequiredDescription
TASK_GRAPH_NAME => stringrequiredRequired. A string specifying the name of the task graph object to compare. Can be unqualified (resolved against the current database and schema) or fully qualified.

Usage notes

Output

The function returns one row for each added, removed, or changed entity: Column Name | Data Type | Description ENTITY_TYPE | TEXT | TASK_GRAPH for a change to the graph’s own properties, such as SCHEDULE, FINALIZER, or TASK_DEFAULTS. TASK for a change to a member task. ENTITY_NAME | TEXT | Name of the task graph or task that changed. BEFORE | TEXT | DDL for the entity in the committed version. NULL if the entity was added. AFTER | TEXT | DDL for the entity with its uncommitted changes. NULL if the entity was removed.