Mateusz
01/23/2024, 7:52 PMcolumn_anomalies - tried many different settings, but can't get the tool to backfill and measure beyond 3 months. This works fine with volume_anomalies, but not with columns. Elementary can definitely read the data - last month, the report had September in it, but now it's gone and it only shows October.
Searched the docs and the internets, but couldn't find anything related. Would appreciate a steer, feels like I'm missing something silly π
More information in thread πMateusz
01/23/2024, 7:54 PMconfig:
elementary:
timestamp_column: period_start
time_bucket:
period: month
count: 1
days_back: 186
backfill_days: 186
Test setup
tests:
- elementary.column_anomalies:
detection_period:
period: month
count: 1
training_period:
period: month
count: 6
column_anomalies:
- sum
config:
severity: warnMateusz
01/23/2024, 7:56 PMcolumn_anomalies, I only get three months, no matter what settings I supply:Mateusz
01/23/2024, 7:59 PMvolume_anomalies this gives me a 5-month view (there is no more data):Noy Arie
01/24/2024, 3:33 PMConfiguration section from the UI as well? Also in the UI, there is not a βwhereβ statement inside the Description section, right?
I am assuming these two tests are on the same model.Mateusz
01/24/2024, 8:38 PMvolume_anomalies is similar:
- elementary.volume_anomalies:
detection_period:
period: month
count: 1
training_period:
period: month
count: 6
config:
severity: warn
There is no where in the description section (I've certainly haven't configured one). The config tab for the column_anomalies and for volume_anomalies is the same:
Test Name:
column_anomalies
Timeframe:
1 month
Timestamp Column:
period_start
Anomaly Threshold:
3Mateusz
01/24/2024, 8:42 PMNoy Arie
01/25/2024, 9:10 AMtest_params field from dbt_tests for these two tests?Mateusz
01/25/2024, 8:08 PM{
"detection_period": {
"period": "month",
"count": 1
},
"training_period": {
"period": "month",
"count": 6
},
"column_anomalies": [
"sum"
],
"column_name": "total_bill_nzd",
"model": "{{ get_where_subquery(ref('table_x', version='1')) }}"
}
for the `volume_anomalies`:
{
"detection_period": {
"period": "month",
"count": 1
},
"training_period": {
"period": "month",
"count": 6
},
"model": "{{ get_where_subquery(ref('table_x', version='1')) }}"
}Ofek Weiss
02/05/2024, 10:00 AMdays_back and backflll_days set in your general model config, these deprecated old fields might conflict with the new detection_period and training_period params in the test config.
can you try removing them/changing them to the new params and letting me know if it causes any improvements π?