SYSTEM$TAG_VALUE_CONTAINS_ON_CURRENT_COLUMN

functionsupportedCore SQL functions

docs.snowflake.com ↗

System functions

Returns TRUE if the specified tag on the column that a policy protects contains the specified string value. Returns FALSE if that value is not assigned, or if the tag is not assigned. Use this function in column-level protection policies, such as masking policies and projection policies, when a tag might have more than one value. SYSTEM$GET_TAG_ON_CURRENT_COLUMN returns an error when multiple values exist. For more information, see Multi-value tags.

Syntax

SYSTEM$TAG_VALUE_CONTAINS_ON_CURRENT_COLUMN( '<tag_name>' , '<value>' )

Parameters

NameRequiredDescription
'tag_name'requiredName of the tag, as a string literal. Snowflake resolves the name when you create or alter the policy, in the schema in use for that statement. Use a fully qualified name for a tag in another schema.
'value'requiredTag value to test for, as a string literal.

Returns

Returns a BOOLEAN: TRUE if the value is assigned to a tag attached directly to the current column. If the column has no directly attached tag, TRUE if the value is assigned on an inherited tag. FALSE otherwise.

Usage notes

Referenced by