From c98cc8c54d43b5a7026a57ae7020902b58fef3f1 Mon Sep 17 00:00:00 2001 From: mwish Date: Fri, 25 Oct 2024 16:32:36 +0800 Subject: [PATCH] apply suggestion --- cpp/src/parquet/reader_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/src/parquet/reader_test.cc b/cpp/src/parquet/reader_test.cc index eeae28c6f2f5c..688c875b9ec0f 100644 --- a/cpp/src/parquet/reader_test.cc +++ b/cpp/src/parquet/reader_test.cc @@ -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(json_string.data(), json_string.length()); @@ -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; } }