Skip to content

Commit

Permalink
apply suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
mapleFU committed Oct 25, 2024
1 parent 2fc8e96 commit c98cc8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/parquet/reader_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@ TEST_F(TestJSONWithLocalFile, JSONOutputFLBA) {

// GH-44101: Test that JSON output is valid JSON
TEST_F(TestJSONWithLocalFile, ValidJsonOutput) {
auto checkJsonValid = [](std::string_view json_string) -> ::arrow::Status {
auto check_json_valid = [](std::string_view json_string) -> ::arrow::Status {
rj::Document json_doc;
constexpr auto kParseFlags = rj::kParseFullPrecisionFlag | rj::kParseNanAndInfFlag;
json_doc.Parse<kParseFlags>(json_string.data(), json_string.length());
Expand All @@ -1199,7 +1199,7 @@ TEST_F(TestJSONWithLocalFile, ValidJsonOutput) {
"concatenated_gzip_members.parquet", "nulls.snappy.parquet"};
for (const auto& file : check_file_lists) {
std::string json_content = ReadFromLocalFile(file);
ASSERT_OK(checkJsonValid(json_content))
ASSERT_OK(check_json_valid(json_content))
<< "Invalid JSON output for file: " << file << ", content:" << json_content;
}
}
Expand Down

0 comments on commit c98cc8c

Please sign in to comment.