SYSTEM$GET_TAG_ON_CURRENT_TABLE

functionsupportedGovernance (policies, tags, data quality)

docs.snowflake.com ↗

System functions

Returns the tag string value assigned to the table based upon the specified tag or NULL if a tag is not assigned to the specified table. Use this function in data protection policy conditions.

Syntax

SYSTEM$GET_TAG_ON_CURRENT_TABLE( '<tag_name>' )

Parameters

NameRequiredDescription
'tag_name'requiredIdentifier for the tag as a string. For example, if the tag is named cost_center use 'cost_center' as the argument.

Usage notes