You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But while it seems to raise the ArrowInvalid properly, somewhere it should probably clear the Python exception raised by the table_provider; or better still, use/append the first exception's message as the ArrowInvalid message?
@milesgranger this has been bothering me too. I wasn't quite sure the best way to resolve this at that time. Thanks for raising this. I will look into this. Are you planning to work on this?
changed the title [-][Python] Fix PytestUnraisableExceptionWarning in substrait test[/-][+][Python][C++] Exception ignored in: 'pyarrow._substrait._create_named_table_provider'[/+]on Nov 17, 2026
Activity
milesgranger commentedon Nov 29, 2022
To expand, it appears the exception in the
table_provideris raised in executor->Init then further down into engine::substrait::serde::DeserializePlans.But while it seems to raise the
ArrowInvalidproperly, somewhere it should probably clear the Python exception raised by thetable_provider; or better still, use/append the first exception's message as theArrowInvalidmessage?vibhatha commentedon Dec 1, 2022
@milesgranger this has been bothering me too. I wasn't quite sure the best way to resolve this at that time. Thanks for raising this. I will look into this. Are you planning to work on this?
milesgranger commentedon Dec 1, 2022
Great! Not planning on it, at least not in the near feature. 👍
vibhatha commentedon Dec 1, 2022
Okay, I will take a look at this. @pitrou or @jorisvandenbossche could you assign this to me?
kou commentedon Dec 1, 2022
Assigned.
vibhatha commentedon Dec 1, 2022
Thank you @kou
jorisvandenbossche commentedon Dec 1, 2022
My first guess would be that the
_create_named_table_provideris missing anexcept *:(to indicate to cython that this function can raise errors, and thus that it should check if any error is raised). See https://cython.readthedocs.io/en/latest/src/userguide/language_basics.html#error-return-valuesvibhatha commentedon Dec 1, 2022
@jorisvandenbossche thanks for the idea. I will check this.
vibhatha commentedon Jun 2, 2024
I am removing my assignment, since I am mostly maintaining Arrow Java.
thisisnic commentedon Nov 17, 2026
See #37235 (comment) for another possible solution
[-][Python] Fix PytestUnraisableExceptionWarning in substrait test[/-][+][Python][C++] Exception ignored in: 'pyarrow._substrait._create_named_table_provider'[/+]