You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (Jira)" <ji...@apache.org> on 2019/12/02 01:05:00 UTC

[jira] [Commented] (ARROW-7282) [Python] IOError subclassing

    [ https://issues.apache.org/jira/browse/ARROW-7282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16985737#comment-16985737 ] 

Wes McKinney commented on ARROW-7282:
-------------------------------------

Are you sure about #1?

https://github.com/apache/arrow/commit/2aed7845fbc9e3d91ab9d16965ee9f6f3abc668b#diff-84f315a8123b3ec1af476b78c39ee969R35

On #2, it is not so straightforward because we do not have such an error in C++. There may be some approach to achieve this though

> [Python] IOError subclassing
> ----------------------------
>
>                 Key: ARROW-7282
>                 URL: https://issues.apache.org/jira/browse/ARROW-7282
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>    Affects Versions: 0.15.1
>         Environment: Arch Linux, Python 3.7
>            Reporter: Scott Gigante
>            Priority: Minor
>              Labels: exception-reporting, pyarrow
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> I get the following error when trying to open a file that does not exist.
>  
> ```
> pyarrow.lib.ArrowIOError: Failed to open local file 'filename', error: No such file or directory
> ```
>  
> Two issues here:
>  # pyarrow.lib.ArrowIOError doesn't inherit from Python IOError
>  # This particular error should also subclass from Python FileNotFoundError



--
This message was sent by Atlassian Jira
(v8.3.4#803005)