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



##########
File path: 
java/vector/src/main/java/org/apache/arrow/vector/ipc/message/MessageSerializer.java
##########
@@ -266,8 +266,15 @@ public static ArrowBlock serialize(WriteChannel out, 
ArrowRecordBatch batch, Ipc
     long bufferLength = writeBatchBuffers(out, batch);
     Preconditions.checkArgument(bufferLength % 8 == 0, "out is not aligned");
 
+    long compLength = 0L;
+    if (batch.getBodyCompression() != null) {
+      compLength = writeCompressionBody(out, batch.getBodyCompression());
+      Preconditions.checkArgument(compLength == 
ArrowBodyCompression.BODY_COMPRESSION_LENGTH,

Review comment:
       You are right. This check is removed. Thanks. 




----------------------------------------------------------------
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:
[email protected]


Reply via email to