-
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
[BUGFIX] Raise error when ExpectColumnValuesToBeBetween is run against an unsupported column #10995
[BUGFIX] Raise error when ExpectColumnValuesToBeBetween is run against an unsupported column #10995
Conversation
✅ Deploy Preview for niobium-lead-7998 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## develop #10995 +/- ##
========================================
Coverage 80.88% 80.88%
========================================
Files 484 484
Lines 40900 40911 +11
========================================
+ Hits 33081 33092 +11
Misses 7819 7819
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
We enforce that max_value and min_value for ExpectColumnValuesToBeBetween must be a numeric or datetime type, but we don't check the underlying data. In SQL contexts where the underlying data is something else such as VARCHAR, users receive opaque exceptions generated by their database, and it isn't clear what they should do to resolve the error. Worse, because of how we bundle metric computations into a single SQL query, every expectation computed in the same run will likely fail with the same opaque error.
This PR updates the ColumnValuesBetween metric to make a basic check against the column type prior to building the query.