DESC MASKING POLICY
引入或更新: v1.2.45
MASKING POLICY是企业版功能。 如需获取许可证,请联系 Databend 支持团队。
显示Databend中特定掩码策略的详细信息。
语法
DESC MASKING POLICY <policy_name>
示例
CREATE MASKING POLICY email_mask
AS
(val string)
RETURNS 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 |