tshauck commented on PR #8856:
URL: 
https://github.com/apache/arrow-datafusion/pull/8856#issuecomment-1891178779

   Thanks @alamb... so looking into the error display, it looks like the 
printed message is 
[`Debug`](https://doc.rust-lang.org/stable/std/process/trait.Termination.html#impl-Termination-for-Result%3CT,+E%3E).
 So certainly, open to alternatives, but what I did to start is implement a new 
`DataFusionCLIError` where `Debug` and `Display` just show an inner message. It 
also implements `From` for datafusion error and rustyline error so they can be 
transformed into the new error.
   
   With those changes, this is what the error now looks like:
   
   ```
   ./target/debug/datafusion-cli -c 'SELECT hi;'               
   DataFusion CLI v34.0.0
   Error: Schema error: No field named hi.
   ```


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