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
Antoine Pitrou / @pitrou:
I think we could probably add a Status::IndexError on the C++ side to designate out-of-bounds conditions (when detected :-)). @wesm@xhochy what do you think?
Joris Van den Bossche / @jorisvandenbossche:
With IndexError, we could match typical behaviour on the python side (out of bound indices give IndexError in Python), but of course this is specific to Python, so that should not necessarily drive a change on the C++ side.
Currently the
Take
kernel returns generic Invalid Status for certain cases, that could use more specific error:indices of wrong type (eg floats) -> TypeError instead of Invalid?
out of bounds index -> new IndexError ?
From review in ARROW-5291: [Python] Add wrapper for take kernel on Array #4281
cc @bkietz
Reporter: Joris Van den Bossche / @jorisvandenbossche
Assignee: Ben Kietzman / @bkietz
Related issues:
PRs and other links:
Note: This issue was originally created as ARROW-5311. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: