andishgar commented on code in PR #46031: URL: https://github.com/apache/arrow/pull/46031#discussion_r2057626230
########## cpp/src/arrow/record_batch_test.cc: ########## @@ -1215,6 +1244,21 @@ Result<std::shared_ptr<Array>> MakeStatisticsArray( std::move(statistics_array)}; return std::make_shared<StructArray>(struct_type, n_columns, struct_arrays); } + +std::shared_ptr<Array> GenerateString( + const std::shared_ptr<::arrow::DataType>& data_type) { + if (data_type->id() == Type::FIXED_SIZE_BINARY) { + auto byte_width = data_type->byte_width(); + auto a = std::string(byte_width, 'a'); + auto b = std::string(byte_width, 'b'); + auto c = std::string(byte_width, 'c'); + std::stringstream ss; + ss << R"([")" << a << R"(",")" << b << R"(",")" << c << R"("])"; + return ArrayFromJSON(data_type, ss.str()); + } + return ArrayFromJSON(data_type, R"(["a","b","c"])"); Review Comment: Thank you for your explanation and the link. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org