-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add plan_err!
error macro
#7115
Conversation
@alamb I went through some use cases for replacing plan errors with macro. Going fwd we can add to the macro |
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.
I think this PR looks really cool @comphead - the new macro seems to save a lot of boiler plate and is quite clear in my mind
Cool, thanks for the feedback, will be covering all other plan references |
@alamb went through all Thanks for checking the PR before the code rots |
![]() very nice @comphead 👍 |
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.
This is epic work @comphead -- thank you so much. I'll plan to merge tomorrow unless anyone else wants more time to review
@@ -411,6 +399,56 @@ impl DataFusionError { | |||
} | |||
} | |||
|
|||
/// Unwrap an `Option` if possible. Otherwise return an `DataFusionError::Internal`. |
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.
👍 very nice
Thanks again @comphead |
Which issue does this PR close?
Closes #.
Rationale for this change
What changes are included in this PR?
Related to #6740.
Are these changes tested?
Are there any user-facing changes?