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)