Merged PR 3677: fixed test

# Description

Fixed test to detect outliers in kpis daily metric models

# Checklist

- [x] The edited models and dependants run properly with production data.
- [x] The edited models are sufficiently documented.
- [x] 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.

fixed test

Related work items: #24590
This commit is contained in:
Joaquin Ossa 2024-11-27 08:58:46 +00:00
commit f38696f3a3

View file

@ -26,7 +26,7 @@
(abs({{ column_name }} - metrics_stats.avg_value))
/ (metrics_stats.stddev_value)
> {{ sigma_threshold }} as is_outlier
from {{ model }}
from recent_data
cross join metrics_stats
where {{ date_column }} = current_date - interval '1 day'
)