-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changes to add support for snapshots data masking (#45)
* Snapshots (#1) * added in ability to process snapshots * added unapply resource type for snapshots * added in snapshot test
- Loading branch information
1 parent
6a7abcd
commit 307c8ab
Showing
7 changed files
with
66 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{% snapshot ods_customers %} | ||
|
||
{{ | ||
config( | ||
target_schema='pii', | ||
strategy='timestamp', | ||
unique_key='customer_id', | ||
updated_at='last_update', | ||
invalidate_hard_deletes=true | ||
) | ||
}} | ||
|
||
SELECT | ||
customer_id, | ||
store_id, | ||
first_name, | ||
last_name, | ||
email, | ||
address_id, | ||
active, | ||
create_date, | ||
last_update | ||
FROM {{ source('seeds', 'customer') }} | ||
|
||
|
||
{% endsnapshot %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: 2 | ||
|
||
snapshots: | ||
- name: ods_customers | ||
columns: | ||
- name: email | ||
meta: | ||
masking_policy: mp_encrypt_pii |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters