PyObjectStringify doesn't handle non-string(bytes or utf-8) type correctly. Should use PyObject_Repr(or PyObject_Str) to get string representation of PyObject.
should change to
How do this infect pyarrow? Minimal reproduction case:
This case is found by my colleague. I would ask him to send a pr here.