abhishek593 opened a new pull request, #48975: URL: https://github.com/apache/arrow/pull/48975
### Rationale for this change ReadMessageAsync takes a body_length parameter and reads Message metadata + body in one go, but the blocking version ReadMessage reads the body length from the Message and issues a second read for the body. This PR adds a ReadMessage overload that takes the body length as parameter and does a single read like the async version does. ### What changes are included in this PR? - Added ReadMessage overload accepting body_length - Updated ReadMessageFromBlock to use the new ReadMessage overload when reading full record batches. - Added new ReadBodyWithLength test case and updated IO range validation tests. ### Are these changes tested? Yes, added TestReadMessage.ReadBodyWithLength and updated other tests to use the new overload. ### Are there any user-facing changes? No. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
