可以将雪花掩盖政策分配给标签吗?
我知道可以将掩盖策略分配给列,例如:
alter table if exists user_info modify column email set masking policy email_mask;
但是我们可以将一个掩盖策略分配给标签吗?因此,可以自动为一个表格中的所有标签列分配屏蔽策略吗?
谢谢。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
简单的答案是否。掩盖策略只能附加在表和视图列上。
如果您想自动为标记的列分配屏蔽策略,则可以执行以下操作:
The simple answer is No. Masking policies can only be attached on columns of Tables and Views.
If you are looking to automatically assign Masking Policies to tagged columns, you can do the following:
截至2022年6月,基于标签的掩蔽策略现在正在公开预览中:
https://docs.snowflake.com/en/release-notes/ preview-features.html
https:/ /docs.snowflake.com/en/user-guide/tag-lase-masking-policies.html
As of June 2022, tag-based masking policies are now in public preview:
https://docs.snowflake.com/en/release-notes/preview-features.html
https://docs.snowflake.com/en/user-guide/tag-based-masking-policies.html