Installation
2 ways of installing this addon
- You want WAP logic in the same environment/dataset (
expositionfor instance): - dbta build objects in
expositionwith a suffix (for instance__audit) e.g.exposition.fct_customers__audit - then dbta zero copy clone them without suffix e.g.
exposition.fct_customers -
your business users only point to the no-audit table e.g.
exposition.fct_customers -
You want WAP logic in 2 separate environments (
audit&expositionfor instance) - dbta build objects in
auditwithout a suffix e.g.audit.fct_customers - then dbta zero copy clone them on your exposition environment e.g.
exposition.fct_customers - your business users only point to the exposition table e.g.
exposition.fct_customers
You want WAP logic in the same environment
- Add this to your
dbt_project.yml:
vars:
dbt-addons:
wap_staging_suffix: __staging # the suffix your audit table will use
prod_target: prod # the prod target you need dbta to work on (avoid running wap in dev / preprod / ci)
addons:
- wap
- Install the required dbt macros with
dbta install.
You want WAP logic in 2 separate environments
- Add this to your
dbt_project.yml:
vars:
dbt-addons:
# when you run in prod, dbta will automatically run in `audit` env first and then clone in `prod`
prod_target: prod
audit_target: audit
addons:
- wap
- Install the required dbt macros with
dbta install.