You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
decompressedBuffer should set writer Index before return it(just like zstd). Or the caller can not get decompressed buffer size.
It can be implemented by decompressedBuffer.writerIndex(decompressedLength);
or decompressedBuffer.writerIndex(outBytes.length);
Component(s)
Java
The text was updated successfully, but these errors were encountered:
…et writer index (#38840)
### Rationale for this change
The `doDecompress` function in `Lz4CompressionCodec` misses writing the index when it is compared with the functionality in `ZstdCompressionCodec`. This PR fixes that issue.
### What changes are included in this PR?
Writes the index for the decompressed ArrowBuf.
### Are these changes tested?
No
### Are there any user-facing changes?
No
* Closes: #38725
Lead-authored-by: Vibhatha Lakmal Abeykoon <vibhatha@gmail.com>
Co-authored-by: vibhatha <vibhatha@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
… not set writer index (apache#38840)
### Rationale for this change
The `doDecompress` function in `Lz4CompressionCodec` misses writing the index when it is compared with the functionality in `ZstdCompressionCodec`. This PR fixes that issue.
### What changes are included in this PR?
Writes the index for the decompressed ArrowBuf.
### Are these changes tested?
No
### Are there any user-facing changes?
No
* Closes: apache#38725
Lead-authored-by: Vibhatha Lakmal Abeykoon <vibhatha@gmail.com>
Co-authored-by: vibhatha <vibhatha@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
dgreiss
pushed a commit
to dgreiss/arrow
that referenced
this issue
Feb 19, 2024
… not set writer index (apache#38840)
### Rationale for this change
The `doDecompress` function in `Lz4CompressionCodec` misses writing the index when it is compared with the functionality in `ZstdCompressionCodec`. This PR fixes that issue.
### What changes are included in this PR?
Writes the index for the decompressed ArrowBuf.
### Are these changes tested?
No
### Are there any user-facing changes?
No
* Closes: apache#38725
Lead-authored-by: Vibhatha Lakmal Abeykoon <vibhatha@gmail.com>
Co-authored-by: vibhatha <vibhatha@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
Describe the bug, including details regarding any error messages, version, and platform.
arrow/java/compression/src/main/java/org/apache/arrow/compression/Lz4CompressionCodec.java
Lines 78 to 83 in 26149d9
decompressedBuffer should set writer Index before return it(just like zstd). Or the caller can not get decompressed buffer size.
It can be implemented by
decompressedBuffer.writerIndex(decompressedLength);
or
decompressedBuffer.writerIndex(outBytes.length);
Component(s)
Java
The text was updated successfully, but these errors were encountered: