-
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
[CT-562] Allow for opt in to context method failures #5167
Comments
Does a base |
I'm not convinced that ContextException is a great category. It's kind of getting into implementation details... |
I had missed this piece several months ago. As mentioned in #5107 (comment), as a person familiar with the
Some options to make that switch while also preserving backwards compatibility:
|
People don't remember what they were even worried about. Closing. |
toyaml
,fromyaml
,tojson
andfromjson
indbt/context/base.py
currently pass back thedefault
(or None) if the value passed in is not serializable/deserializable without ever failing.dbt-core/core/dbt/context/base.py
Lines 455 to 458 in d1ae9dd
It should be possible to get the error out for the case when the value is unexpectedly serializable/deserializable. The existing methods should continue to function as is to prevent breaking current projects. Add new methods that will throw errors.
Open Questions
The text was updated successfully, but these errors were encountered: