SYSTEM$GET_TAG_ON_CURRENT_COLUMN

functionsupportedGovernance (policies, tags, data quality)

docs.snowflake.com ↗

System functions

Returns the tag string value assigned to the column based upon the specified tag or NULL if a tag is not assigned to the specified column. When the body of a masking policy or projection policy includes this function, the value of a tag assigned to a column can determine the return value of the policy assigned to that column.

Syntax

SYSTEM$GET_TAG_ON_CURRENT_COLUMN( '<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