SYSTEM$TAG_VALUE_CONTAINS_ON_CURRENT_TABLE

functionsupportedCore SQL functions

docs.snowflake.com ↗

System functions

Returns TRUE if the specified tag on the table 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 data protection policies when a tag might have more than one value. SYSTEM$GET_TAG_ON_CURRENT_TABLE returns an error when multiple values exist. For more information, see Multi-value tags.

Syntax

SYSTEM$TAG_VALUE_CONTAINS_ON_CURRENT_TABLE( '<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 the tag on the current table, including a value inherited from a parent object. FALSE otherwise.

Usage notes

Referenced by