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

Neal Richardson commented on ARROW-6323:
----------------------------------------

Not urgent, just seems like the kind of thing the C++ filesystem API should 
handle so that every language doesn't have to reimplement it. Plus, if C++ did 
this, I could drop an R package dependency. 

I just made ARROW-6324 for that.

> [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
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)

Reply via email to