Skip to content

Commit

Permalink
Add audit_helper dependency and create first audit model
Browse files Browse the repository at this point in the history
  • Loading branch information
Maria Lorena Rodriguez Viruel authored and Maria Lorena Rodriguez Viruel committed Nov 7, 2023
1 parent 194b3d5 commit 51b86ae
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
26 changes: 26 additions & 0 deletions models/brac/impact/PNC/impact_pncview_visit_audit.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{# in dbt Develop #}


{% set old_useview_postnatal_care %}
select
uuid,
patient_id,
form
from dbt.useview_postnatal_care
{% endset %}


{% set new_impact_pncview_visit %}
select
uuid,
patient_id,
form
from {{ ref("impact_pncview_visit") }}
{% endset %}


{{ audit_helper.compare_queries(
a_query=old_useview_postnatal_care,
b_query=new_impact_pncview_visit,
primary_key="uuid"
) }}
2 changes: 2 additions & 0 deletions packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ packages:
version: 1.1.1
- package: calogica/dbt_date
version: 0.9.1
- package: dbt-labs/audit_helper
version: 0.9.0

0 comments on commit 51b86ae

Please sign in to comment.