You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Ariana Villegas (Jira)" <ji...@apache.org> on 2022/05/04 13:43:00 UTC

[jira] [Created] (ARROW-16459) [C++] Update GetFileInfo in FromProto to use async filesystem APIs

Ariana Villegas created ARROW-16459:
---------------------------------------

             Summary: [C++] Update GetFileInfo in FromProto to use async filesystem APIs
                 Key: ARROW-16459
                 URL: https://issues.apache.org/jira/browse/ARROW-16459
             Project: Apache Arrow
          Issue Type: Improvement
          Components: C++
            Reporter: Ariana Villegas


GetGlobFiles function in {{arrrow/engine/substrait/relation_internal.cc}} discovery directories with sync APIs. However, it would be more efficient to use async APIs to avoid blocking calls.
{code:c++}
for (auto res : results) {
    if (res.type() != fs::FileType::Directory) continue;
    selector.base_dir = res.path() + cur;
    ARROW_ASSIGN_OR_RAISE(auto entries, filesystem->GetFileInfo(selector));
}
{code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)