niyue commented on a change in pull request #11486:
URL: https://github.com/apache/arrow/pull/11486#discussion_r732840770
##########
File path: cpp/src/arrow/ipc/message.cc
##########
@@ -308,8 +337,16 @@ Result<std::unique_ptr<Message>> ReadMessage(int64_t
offset, int32_t metadata_le
" invalid. File offset: ", offset,
", metadata length: ", metadata_length);
case MessageDecoder::State::BODY: {
- ARROW_ASSIGN_OR_RAISE(auto body, file->ReadAt(offset + metadata_length,
-
decoder.next_required_size()));
+ std::shared_ptr<Buffer> body;
+ if (fields_loader) {
Review comment:
Depending on if `included_fields` are used in `IpcReadOptions`, here
either `fields_loader` will be used to load each field's buffers or the entire
body will be loaded.
--
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]