The problem I’m having
I get error message: macro ‘dbt_macro__test_volume_anomalies’ takes no keyword argument ‘detection_period’ When I add elementary test by following dbt elementary document.
The context of why I’m trying to do this
I add it to my dbt_project.yml file
vars:
detection_delay:
period: month
count: 1
anomaly_direction: both
detection_period:
period: week
count: 2
my model yml file is here:
models:
- name: my_model
description: “A reporting model using the timezone from rmy_model.”
config:
elementary:
detection_delay:
period: week
count: 1
timestamp_column: my_created_at
anomaly_direction: drop
detection_period:
period: month
count: 1
tests:
- elementary.volume_anomalies:
anomaly_direction: drop
detection_period:
period: day
count: 30
training_period:
period: day
count: 30
What I’ve already tried
Follow all det elementary documnet
Some example code or error messages
macro ‘dbt_macro__test_volume_anomalies’ takes no keyword argument ‘detection_period’
Put code inside backticks
to preserve indentation
which is especially important
for Python and YAML!