data-dwh-dbt-project/models
Oriol Roqué Paniagua 599f00093e Merged PR 2760: Adding latest_date_is_yesterday test
# Description

Adds a new dbt test that will fail if the maximum date of a given column is different from yesterday. It uses `current_date`.

Additionally, I changed the test `kpis_global_metrics_outlier_detection` on the name of the parameter `detector_strength` to `detector_tolerance`, as a higher value of the parameter indicates that will be less likely to raise an alert.

Verified in local that tests passes if the execution is normal. Verified in local that the tests fails if manually deleting the latest date in the table.

# Checklist - Does not apply

- [ ] The edited models and dependants run properly with production data.
- [ ] The edited models are sufficiently documented.
- [ ] The edited models contain PK tests, and I've ran and passed them.
- [ ] I have checked for DRY opportunities with other models and docs.
- [ ] I've picked the right materialization for the affected models.

# Other

- [ ] Check if a full-refresh is required after this PR is merged.

Related work items: #20824
2024-09-09 12:52:53 +00:00
..
intermediate First version of name unification for a deal 2024-09-06 17:08:50 +02:00
reporting Adding new column test: latest_date_is_yesterday 2024-09-06 09:13:27 +02:00
staging add date fields to docs 2024-09-04 09:21:22 +02:00
doc_blocks.md improve stg_stripe__charges 2024-02-23 16:45:19 +01:00