From 6c275ff8c314df2515cb92cc1deea2f6dd9425e9 Mon Sep 17 00:00:00 2001 From: sunby Date: Tue, 17 Oct 2023 17:35:56 +0800 Subject: [PATCH] [Cpp] Initialize s3 Signed-off-by: sunby --- cpp/src/common/fs_util.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpp/src/common/fs_util.cpp b/cpp/src/common/fs_util.cpp index ec31ddf0..4ecf0c14 100644 --- a/cpp/src/common/fs_util.cpp +++ b/cpp/src/common/fs_util.cpp @@ -25,6 +25,8 @@ Result> BuildFileSystem(const std::string if (schema == "s3") { ASSIGN_OR_RETURN_ARROW_NOT_OK(auto option, arrow::fs::S3Options::FromUri(uri_parser)); ASSIGN_OR_RETURN_ARROW_NOT_OK(auto fs, arrow::fs::S3FileSystem::Make(option)); + // initialize s3 fs + RETURN_ARROW_NOT_OK(arrow::fs::InitializeS3(arrow::fs::S3GlobalOptions{})); return std::shared_ptr(fs); }