SAY-5 commented on PR #49833:
URL: https://github.com/apache/arrow/pull/49833#issuecomment-4531627997
Re: the TypeError catch: the TypeError caught in _binop_or_notimplemented is
specifically the one Python/Cython raises when call_function cannot convert the
right operand to an Arrow type. Pyarrow-to-pyarrow type mismatches (e.g.,
pa.scalar("a") + pa.scalar(1.0)) raise ArrowNotImplementedError (subclass of
NotImplementedError, not TypeError), so those propagate unchanged, as verified
by test_dunders_unmatching_types. The concern about non-dispatch TypeErrors is
valid; I can narrow the catch to check error message prefix if preferred.
--
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]