crepererum opened a new pull request, #4437:
URL: https://github.com/apache/arrow-datafusion/pull/4437

   # Which issue does this PR close?
   Closes #4435.
   
   # Rationale for this change
   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".
   
   # What changes are included in this PR?
   ```rust
   impl DataFusionError {
       /// Get underlying error.
       ///
       /// This may be the same as `self`.
       pub fn find_root(&self) -> &Self {...}
   }
   ```
   
   # Are these changes tested?
   - `test_find_root_error`
   
   # Are there any user-facing changes?
   New method for `DataFusionError`.


-- 
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]

Reply via email to