DESC MASKING POLICY
Introduced or updated: v1.2.45
MASKING POLICY requires Enterprise Edition. To inquire about upgrading, please contact Databend Support.
Displays detailed information about a specific masking policy in Databend.
Syntax
DESC MASKING POLICY <policy_name>
Examples
CREATE MASKING POLICY email_mask AS (val STRING) RETURN STRING -> CASE WHEN current_role() IN ('MANAGERS') THEN VAL ELSE '*********'END comment = 'hide_email';
DESC MASKING POLICY email_mask;
Name |Value |
-----------+---------------------------------------------------------------------+
Name |email_mask |
Created On |2023-08-09 02:29:16.177898 UTC |
Signature |(val STRING) |
Return Type|STRING |
Body |CASE WHEN current_role() IN('MANAGERS') THEN VAL ELSE '*********' END|
Comment |hide_email |