ArianaVillegas commented on code in PR #12625:
URL: https://github.com/apache/arrow/pull/12625#discussion_r861373675
##########
cpp/src/arrow/engine/substrait/relation_internal.cc:
##########
@@ -49,6 +50,59 @@ Status CheckRelCommon(const RelMessage& rel) {
return Status::OK();
}
+Result<fs::FileInfoVector> GetGlobFiles(const std::shared_ptr<fs::FileSystem>&
filesystem,
+ std::string& path) {
+ fs::FileInfoVector results, temp;
+ fs::FileSelector selector;
+ std::string cur;
+ size_t i = 0;
+
+#if _WIN32
+ auto split_path = fs::internal::SplitAbstractPath(path, '\\');
+ ARROW_ASSIGN_OR_RAISE(auto file, filesystem->GetFileInfo(split_path[i++] +
"\\"));
+#else
+ auto split_path = fs::internal::SplitAbstractPath(path, '/');
+ ARROW_ASSIGN_OR_RAISE(auto file, filesystem->GetFileInfo("/"));
Review Comment:
I was thinking in this glob "/*/A/a.txt" in linux local filesystem, so the
first element should be "/"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]