[
https://issues.apache.org/jira/browse/ARROW-6248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alexander Schepanovski updated ARROW-6248:
------------------------------------------
Description:
When file is absent pyarrow throws
{code:python}
ArrowIOError('HDFS file does not exist: ...')
{code}
which inherits from {{IOError}} and {{pyarrow.lib.ArrowException}}, it would be
better if that was {{FileNotFoundError}} a subclass of {{IOError}} for this
particular purpose. Also, {{.errno}} property is empty (should be 2) so one
needs to match by error message to check for particular error.
*P.S.* There is no {{FileNotFoundError}} in Python 2, but there is {{.errno}}
property there.
was:
When file is absent pyarrow throws
{code:python}
ArrowIOError('HDFS file does not exist: ...')
{code}
which inherits from {{IOError}} and {{pyarrow.lib.ArrowException}}, it would be
better if that was {{FileNotFoundError}} a subclass of {{IOError}} for this
particular purpose. Also, {{.errno}} property is empty (should be 2) so one
needs to match by error message to check for particular error.
*P.S.* There is no {{FileNotFoundError}} in Python 2, but there is `.errno`
property there.
> [Python] Use FileNotFoundError in HadoopFileSystem.open() in Python 3
> ----------------------------------------------------------------------
>
> Key: ARROW-6248
> URL: https://issues.apache.org/jira/browse/ARROW-6248
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Python
> Affects Versions: 0.14.1
> Reporter: Alexander Schepanovski
> Priority: Minor
>
> When file is absent pyarrow throws
> {code:python}
> ArrowIOError('HDFS file does not exist: ...')
> {code}
> which inherits from {{IOError}} and {{pyarrow.lib.ArrowException}}, it would
> be better if that was {{FileNotFoundError}} a subclass of {{IOError}} for
> this particular purpose. Also, {{.errno}} property is empty (should be 2) so
> one needs to match by error message to check for particular error.
> *P.S.* There is no {{FileNotFoundError}} in Python 2, but there is
> {{.errno}} property there.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)