You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Ben Kietzman (Jira)" <ji...@apache.org> on 2020/01/23 18:54:00 UTC

[jira] [Created] (ARROW-7664) [C++] Extract localfs default from FileSystemFromUri

Ben Kietzman created ARROW-7664:
-----------------------------------

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