crepererum opened a new issue, #4435:
URL: https://github.com/apache/arrow-datafusion/issues/4435
**Is your feature request related to a problem or challenge? Please describe
what you are trying to do.**
It would be nice to get the typed "original" error, even when it is wrapped
into a chain of `ExternalError`, `ArrowError`, `Arc` etc. The original error
could be used to generate HTTP status codes in certain situations, e.g.
"resource exhausted".
**Describe the solution you'd like**
```rust
impl DataFusionError {
/// Get underlying error.
///
/// This may be the same as `self`.
pub fn find_root(&self) -> &Self {...}
}
```
**Describe alternatives you've considered**
String parsing? Sounds like bad code smell.
**Additional context**
See #4434 for improvements on the error generation. See #3940 for an
application.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]