liyafan82 commented on a change in pull request #7326:
URL: https://github.com/apache/arrow/pull/7326#discussion_r465621351



##########
File path: 
java/vector/src/main/java/org/apache/arrow/vector/ipc/message/MessageSerializer.java
##########
@@ -403,16 +421,29 @@ public static ArrowRecordBatch 
deserializeRecordBatch(RecordBatch recordBatchFB,
       nodes.add(new ArrowFieldNode(node.length(), node.nullCount()));
     }
     List<ArrowBuf> buffers = new ArrayList<>();
+    long curOffset = 0L;
     for (int i = 0; i < recordBatchFB.buffersLength(); ++i) {
       Buffer bufferFB = recordBatchFB.buffers(i);
       ArrowBuf vectorBuffer = body.slice(bufferFB.offset(), bufferFB.length());
+      curOffset = bufferFB.offset() + bufferFB.length();
       buffers.add(vectorBuffer);
     }
+
+    if (curOffset % 8 != 0) {
+      curOffset += 8 - curOffset % 8;
+    }
+    ArrowBodyCompression bodyCompression = null;

Review comment:
       In the revised PR, we no longer parse the buffer stream. Thanks for the 
suggestion. 




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to