liyafan82 commented on a change in pull request #7326: URL: https://github.com/apache/arrow/pull/7326#discussion_r465621861
########## File path: java/flight/flight-core/src/main/java/org/apache/arrow/flight/ArrowMessage.java ########## @@ -353,6 +361,23 @@ private InputStream asInputStream(BufferAllocator allocator) { // the reference count b.getReferenceManager().retain(); } + + // add compression info, if any + if (bodyCompression != null) { + ArrowBuf compBuf = allocator.buffer(ArrowBodyCompression.BODY_COMPRESSION_LENGTH); + compBuf.setByte(0, bodyCompression.getCodec()); Review comment: In the reivsed PR, we no longer manually serilize/deserialize the table. 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: us...@infra.apache.org