-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Allow overriding error type in DataFusion Result #5000
Allow overriding error type in DataFusion Result #5000
Conversation
454d650
to
0f424c8
Compare
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 reasonable to me - thank you @tustvold
@@ -34,7 +34,7 @@ use parquet::errors::ParquetError; | |||
use sqlparser::parser::ParserError; | |||
|
|||
/// Result type for operations that could result in an [DataFusionError] | |||
pub type Result<T> = result::Result<T, DataFusionError>; | |||
pub type Result<T, E = DataFusionError> = result::Result<T, E>; |
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 the actual change as I undertand
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.
Cool
Benchmark runs are scheduled for baseline = 65555d7 and contender = 5dd5ffd. 5dd5ffd is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
Which issue does this PR close?
Closes #.
Rationale for this change
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?
This is technically a breaking change, as there are some rare cases where this will now result in a compile error as it cannot infer the return type.