Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

policy_tags variables are replaced by their value #198

Open
thibaultam opened this issue Jan 15, 2025 · 0 comments
Open

policy_tags variables are replaced by their value #198

thibaultam opened this issue Jan 15, 2025 · 0 comments

Comments

@thibaultam
Copy link

Many thanks for this great project, it's super useful.

We have a little issue though. We use policy tags on columns to identify sensible data (PII). To make this more visible we use a variable defined in dbt_project.yml:

# 
vars:
  policy_tag_pii: projects/our_project/locations/eu/taxonomies/6552354571455331948/policyTags/6569849934623492533

We then use it in model.yml like this:

columns:
  - name: email
    policy_tags:
    - "{{ var('policy_tag_pii') }}"

We consider this to be more readable.

The issue I have is that dbt-osmosis yaml generate will replace this "{{ var('policy_tag_pii') }}" by the corresponding value.

Is there a way to avoid that behaviour in the current way of things?
I'd be happy to contribute if you think that's something that should be included. Any guidance about where this replacement happens would be appreciated.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant