alamb opened a new pull request, #2295:
URL: https://github.com/apache/arrow-rs/pull/2295

   # Which issue does this PR close?
   
   N/A
   
   # Rationale for this change
    
   
   As suggested by @viirya  on 
https://github.com/apache/arrow-rs/pull/2284#discussion_r936157060 the amount 
of qualification on the types in cast error messages is both not helpful it may 
actually obscure the actual problem
   
   
   # What changes are included in this PR?
   
   
   Use standard `fmt::Debug` printing for type names in error messages, as done 
in the rest of the file
   
   
   # Are there any user-facing changes?
   Instead of looking like
   
   ```
   Cast error: Cannot cast ... to value of 
arrow::datatypes::types::Time32SecondType type
   ```
   
   Errors now look like
   
   ```
   Cast error: Cannot cast ... to value of Time32 type
   ```


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