Skip to content

Instantly share code, notes, and snippets.

@t0mpere
Created May 19, 2021 10:08
Show Gist options
  • Save t0mpere/d50891c5b14a6dbd3a417f4ac6d7b3d4 to your computer and use it in GitHub Desktop.
Save t0mpere/d50891c5b14a6dbd3a417f4ac6d7b3d4 to your computer and use it in GitHub Desktop.
anonymization usage
{{ config(database='sources') }}
{{ config(schema='production') }}
-- the following comment is needed by dbt to compile the references in the macro
-- depends_on: {{ ref('anonymization_mapping') }}
select {{ anonymize_columns('private_sources', 'production', 'users') }}
from private_sources.production.users
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment