From b306969afc627b6d06076164676d97a14cf10655 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..9cc0517d 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)); + + RETURN_ARROW_NOT_OK(arrow::fs::InitializeS3(arrow::fs::S3GlobalOptions{})); return std::shared_ptr(fs); }