You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/08/22 17:07:00 UTC

[jira] [Updated] (ARROW-6323) [R] Expand file paths when passing to readers

     [ https://issues.apache.org/jira/browse/ARROW-6323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ASF GitHub Bot updated ARROW-6323:
----------------------------------
    Labels: pull-request-available  (was: )

> [R] Expand file paths when passing to readers
> ---------------------------------------------
>
>                 Key: ARROW-6323
>                 URL: https://issues.apache.org/jira/browse/ARROW-6323
>             Project: Apache Arrow
>          Issue Type: Bug
>            Reporter: Neal Richardson
>            Assignee: Neal Richardson
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.15.0
>
>
> All file paths in R are wrapped in {{fs::path_abs()}}, which handles relative paths, but it doesn't expand {{~}}, so this fails:
> {code:java}
> > df <- read_parquet("~/Downloads/demofile.parquet")
>  Error in io___MemoryMappedFile__Open(fs::path_abs(path), mode) :
>    IOError: Failed to open local file '~/Downloads/demofile.parquet', error: No such file or directory
> {code}
> This is fixed by using {{fs::path_real()}} instead.
> Should this be properly handled in C++ though? cc [~pitrou]



--
This message was sent by Atlassian Jira
(v8.3.2#803003)