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

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

Neal Richardson created ARROW-6323:
--------------------------------------

             Summary: [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
             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)