HyukjinKwon opened a new pull request, #48464:
URL: https://github.com/apache/arrow/pull/48464

   ### Rationale for this change
   
   
https://github.com/apache/arrow/commit/3b000b7062b5614a02134d1a90ae381b937aac07 
first introduced this todo as below 
   
   
https://github.com/apache/arrow/blob/0bfbd19bce3e10163537b349f9205b635c87eea7/python/pyarrow/src/arrow/python/arrow_to_pandas.cc#L1130
   
   Then, the error messages are actually handled at the higher level if I am 
not mistaken (e.g.,  05bc63c3b76a5fc865434f596c63ff0f26388f69 introduced 
`_sanitize_arrays` and casting at `asarray` ). So the end users would not reach 
this. This is more for a sanity check and developers to debug.
   
   This is to improve the error message for the sanity check and developers.
   
   ### What changes are included in this PR?
   
   This PR improves the error message in CheckTypeExact arrow_to_pandas.cc by 
adding the corresponding NumPy string type.
   
   ### Are these changes tested?
   
   Unittest is added, and manually run as below:
   
   ```
   pytest pyarrow/tests/test_cpp_internals.py::test_get_numpy_type_name -v
   ```
   
   ### Are there any user-facing changes?
   
   No.


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