[
https://issues.apache.org/jira/browse/ARROW-7664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated ARROW-7664:
----------------------------------
Labels: pull-request-available (was: )
> [C++] Extract localfs default from FileSystemFromUri
> ----------------------------------------------------
>
> Key: ARROW-7664
> URL: https://issues.apache.org/jira/browse/ARROW-7664
> Project: Apache Arrow
> Issue Type: Improvement
> Components: C++
> Affects Versions: 0.15.1
> Reporter: Ben Kietzman
> Assignee: Antoine Pitrou
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.0.0
>
>
> [https://github.com/apache/arrow/pull/6257#pullrequestreview-347506792]
> The argument to FileSystemFromUri should always be rfc3986 formatted. The
> current fallback to localfs can be recovered by adding {{static string
> Uri::FromPath(string)}} which wraps
> [uriWindowsFilenameToUriStringA|https://uriparser.github.io/doc/api/latest/Uri_8h.html#a422dc4a2b979ad380a4dfe007e3de845]
> and the corresponding unix path function.
> {code:java}
> FileSystemFromUri(Uri::FromPath(R"(E:\dir\file.txt)"), &sanitized) {code}
> This is a little more boilerplate but I think it's worthwhile to be explicit
> here.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)