You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'create_masking_policy_encrypt_sensitive_data file in macros
{% macro create_masking_policy_encrypt_sensitive_data(node_database,node_schema) %}
CREATE MASKING POLICY IF NOT EXISTS {{node_database}}.{{node_schema}}.encrypt_sensitive_data AS (val string)
RETURNS string ->
CASE WHEN CURRENT_ROLE() IN (
'ACCOUNTADMIN'
) THEN val
ELSE SHA2(val, 256)
END
{% endmacro %}
package
dbt_project.yml
'create_masking_policy_encrypt_sensitive_data file in macros
yml of model
Logs
It simply does not mask the data. I can manually apply the policy to the columns and it works, but it doesn't get applied by dbt,
The text was updated successfully, but these errors were encountered: