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
Thanks for your work !
I use this pkg to set a masking policy on one of my table. To set it I use a post-hook in the suitable model.
But I have a strange behavior: when I add it in my dbt_project.yml, it works fine: models: analytics: result: +post-hook: - "{{ config(post_hook=dbt_snow_mask.apply_masking_policy('models')) }}"
But when I add it directly in the sql file defining my model it's launched as a pre-hook (resulting in the creation of a table with no masking policy): {{ config( post_hook=dbt_snow_mask.apply_masking_policy('models') ) }}
I managed to reproduce it at will.
Don't hesitate if you need further details.
Bests,
Arnaud
The text was updated successfully, but these errors were encountered:
Thanks for catching this issue. It seems the bug is due to a wrong syntax in documentation. Can you please try updating the post hook in model to below statement and confirm if it is working correctly ?
Hi,
Thanks for your work !
I use this pkg to set a masking policy on one of my table. To set it I use a post-hook in the suitable model.
But I have a strange behavior: when I add it in my dbt_project.yml, it works fine:
models: analytics: result: +post-hook: - "{{ config(post_hook=dbt_snow_mask.apply_masking_policy('models')) }}"
But when I add it directly in the sql file defining my model it's launched as a pre-hook (resulting in the creation of a table with no masking policy):
{{ config( post_hook=dbt_snow_mask.apply_masking_policy('models') ) }}
I managed to reproduce it at will.
Don't hesitate if you need further details.
Bests,
Arnaud
The text was updated successfully, but these errors were encountered: