XiangpengHao commented on code in PR #6039:
URL: https://github.com/apache/arrow-rs/pull/6039#discussion_r1672497854
##########
arrow-ipc/src/compression.rs:
##########
@@ -103,8 +103,8 @@ impl CompressionCodec {
} else if let Ok(decompressed_length) =
usize::try_from(decompressed_length) {
// decompress data using the codec
let input_data = &input[(LENGTH_OF_PREFIX_DATA as usize)..];
- self.decompress(input_data, decompressed_length as _)?
- .into()
+ let v = self.decompress(input_data, decompressed_length as _)?;
+ Buffer::from_vec(v)
Review Comment:
Copy!
--
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]