liyafan82 commented on a change in pull request #7326:
URL: https://github.com/apache/arrow/pull/7326#discussion_r468986947
##########
File path:
java/vector/src/main/java/org/apache/arrow/vector/ipc/message/MessageSerializer.java
##########
@@ -408,11 +408,15 @@ public static ArrowRecordBatch
deserializeRecordBatch(RecordBatch recordBatchFB,
ArrowBuf vectorBuffer = body.slice(bufferFB.offset(), bufferFB.length());
buffers.add(vectorBuffer);
}
+
+ ArrowBodyCompression bodyCompression =
+ new ArrowBodyCompression(recordBatchFB.compression().codec(),
recordBatchFB.compression().method());
Review comment:
According to our current implementation. The compression object cannot
be null.
For the sake of safety, we added check here.
----------------------------------------------------------------
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]