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

Joris Van den Bossche commented on ARROW-5205:
----------------------------------------------

Will take a look at it. We certainly did some effort on this topic in the 
datasets (eg we now have a {{pyarrow.fs._resolve_filesystem_and_path}} that has 
some logic to check if a plain path is available as a local file or not), but I 
don't know for sure if we already use this helper in all IO methods (eg from a 
quick check, I think {{feather.read_feather}} doesn't use that).

> [Python][C++] Improved error messages when user erroneously uses a non-local 
> resource URI to open a file
> --------------------------------------------------------------------------------------------------------
>
>                 Key: ARROW-5205
>                 URL: https://issues.apache.org/jira/browse/ARROW-5205
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++, Python
>            Reporter: Wes McKinney
>            Priority: Major
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> In a number of places if a string filepath is passed, it is assumed to be a 
> local file. Since we are developing better support for file URIs, we may be 
> able to detect that the user has passed an unsupported URI (e.g. something 
> starting with "s3:" or "hdfs:") and return a better error message than "local 
> file not found"
> see
> https://stackoverflow.com/questions/55704943/what-could-be-the-explanation-of-this-pyarrow-lib-arrowioerror/55707311#55707311



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

Reply via email to