[
https://issues.apache.org/jira/browse/ARROW-5311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16840392#comment-16840392
]
Benjamin Kietzman edited comment on ARROW-5311 at 5/15/19 1:30 PM:
-------------------------------------------------------------------
Alternatively: we could just use KeyError
was (Author: bkietz):
Alternatively, we could just use KeyError
> [C++] Return more specific invalid Status in Take kernel
> --------------------------------------------------------
>
> Key: ARROW-5311
> URL: https://issues.apache.org/jira/browse/ARROW-5311
> Project: Apache Arrow
> Issue Type: Improvement
> Components: C++
> Reporter: Joris Van den Bossche
> Assignee: Benjamin Kietzman
> Priority: Minor
> Fix For: 0.14.0
>
>
> 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 https://github.com/apache/arrow/pull/4281
> cc [~bkietz]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)