Missing max tests in report when defining it together with min tests
Describe the bug
Missing max tests, when defining tests in schema.yml
To Reproduce
- Define tests for model in
schema.yml
- elementary.column_anomalies:
column_anomalies:
- max
- min
column_name: "value_column"
timestamp_column: "measured_at"
training_period:
period: month
count: 1
time_bucket:
period: hour
count: 12
detection_delay:
period: hour
count: 12
ignore_small_changes:
spike_failure_percent_threshold: 10
drop_failure_percent_threshold: 10
- Run
dbt run && dbt test - Run
edr report
Expected behavior
I expect to find min and max tests in generated report, but I only find min tests in the report.
Screenshots If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
- Elementary CLI (edr) version: 0,16
- Elementary dbt package version: 0.16
- dbt version you're using: 1.8.4
- Data warehouse: postgres
- Infrastructure details: macOS
Additional context
I have defined separate tests in schema.yml
- elementary.column_anomalies:
column_anomalies:
- average
- standard_deviation
- variance
column_name: "value_column"
timestamp_column: "measured_at"
training_period:
period: month
count: 1
time_bucket:
period: hour
count: 12
detection_delay:
period: hour
count: 12
- elementary.column_anomalies:
column_anomalies:
- null_count
- null_percent
- zero_count
- zero_percent
column_name: "value_column"
timestamp_column: "measured_at"
training_period:
period: month
count: 1
time_bucket:
period: hour
count: 12
detection_delay:
period: hour
count: 12
ignore_small_changes:
spike_failure_percent_threshold: 15
drop_failure_percent_threshold: 15
Would you be willing to contribute a fix for this issue? Not enough knowledge
Hey @retrry, i seem to be unable to reproduce this issue locally, can you share a screenshot of the report? with the relevant test result expanded like so:
Hey, after more testing I see that I misidentified the problem. The tests are run correctly and if I select the model directly - I can see them, but for column anomalies only 1 of the tests is displayed in main results window.
Main results window:
One model selected:
Hi @retrry ! Sorry for the delay here, I believe this is a bug we actually fixed but never released, we'll do so!
@haritamar any updates on this?