Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
Description
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.
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)); }