-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Threshold argument for Test Severity #2219
Comments
Worth saying off the bat:
I think that becomes all the more relevant as we start to work with bigger datasets. We already run into issues with tiny failures for One complication I'd throw out is absolute vs. relative thresholds. I may want a test to error if the number of failures is >1% of the overall row count, instead of being greater than an arbitrary number. While not directly related, I also see this working in combination with a models:
- name: my_big_model
columns:
- name: important_column
tests:
- not_null:
warn_after: {count: 0, percent: true}
error_after: {count: 1, percent: true}
where: "date_day >= (current_date() - interval 1 day)" |
Check out #1173 - I think we could make a change like this in the scope of that issue (or shortly thereafter).
|
I'm also very much in favor of supporting relative thresholds, but for the syntax instead of - not_null:
error_after: 10 # Row count
- not_null:
error_after: 10% # Relative percentage |
Let's do it! I think these will be new test configs, Closing in favor of the concrete proposal in #3258 |
Sounds like the proposal in #3258 never ended up implementing relative thresholds? |
Hi All, I found a workaround with this by writing a generic test in dbt and then referencing it in the yml files like any other ordinary test: This one works for a relationships test, has a 1% error threshold, and works for BigQuery. Feel free to change as you see fit.
|
Describe the feature
threshold
argument fortest severity
.Describe alternatives you've considered
Additional context
Who will this benefit?
The text was updated successfully, but these errors were encountered: