Skip to content

Commit

Permalink
Fix format with clang-format-8
Browse files Browse the repository at this point in the history
Signed-off-by: acezen <qiaozi.zwb@alibaba-inc.com>
  • Loading branch information
acezen committed Jun 19, 2024
1 parent ec1c5c4 commit 04518a2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions cpp/include/graphar/util/filesystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ class FileSystem {
* @return A Status indicating OK if successful, or an error if unsuccessful.
*/
template <typename T>
Status WriteValueToFile(const T& value,
const std::string& path) const noexcept;
Status WriteValueToFile(const T& value, const std::string& path) const
noexcept;

/**
* @brief Write a table to a file with a specific type.
Expand All @@ -111,8 +111,8 @@ class FileSystem {
* @return A Status indicating OK if successful, or an error if unsuccessful.
*/
Status WriteTableToFile(const std::shared_ptr<arrow::Table>& table,
FileType file_type,
const std::string& path) const noexcept;
FileType file_type, const std::string& path) const
noexcept;

/**
* Copy a file.
Expand Down
9 changes: 5 additions & 4 deletions cpp/src/filesystem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ Result<T> FileSystem::ReadFileToValue(const std::string& path) const noexcept {
}

template <>
Result<std::string> FileSystem::ReadFileToValue(
const std::string& path) const noexcept {
Result<std::string> FileSystem::ReadFileToValue(const std::string& path) const
noexcept {
GAR_RETURN_ON_ARROW_ERROR_AND_ASSIGN(auto access_file,
arrow_fs_->OpenInputFile(path));
GAR_RETURN_ON_ARROW_ERROR_AND_ASSIGN(auto bytes, access_file->GetSize());
Expand Down Expand Up @@ -311,6 +311,7 @@ Result<std::shared_ptr<FileSystem>> FileSystemFromUriOrPath(
template Result<IdType> FileSystem::ReadFileToValue<IdType>(
const std::string&) const noexcept;
/// template specialization for std::string
template Status FileSystem::WriteValueToFile<IdType>(
const IdType&, const std::string&) const noexcept;
template Status FileSystem::WriteValueToFile<IdType>(const IdType&,
const std::string&) const
noexcept;
} // namespace graphar
3 changes: 1 addition & 2 deletions cpp/test/test_arrow_chunk_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,7 @@ TEST_CASE_METHOD(GlobalFixture, "JSON_TEST") {

SECTION("CastDataType") {
std::string prefix = test_data_dir + "/ldbc_sample/";
std::string vertex_info_path =
prefix + "json/Person.vertex.yml";
std::string vertex_info_path = prefix + "json/Person.vertex.yml";
std::cout << "Vertex info path: " << vertex_info_path << std::endl;
auto fs = FileSystemFromUriOrPath(prefix).value();
auto yaml_content =
Expand Down

0 comments on commit 04518a2

Please sign in to comment.