8000 MINOR: ZstdCompressionCodec should use decompressedSize to get error name by libenchao · Pull Request #619 · apache/arrow-java · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
@@ -68,7 +68,7 @@ protected ArrowBuf doDecompress(BufferAllocator allocator, ArrowBuf compressedBu
Original file line number Diff line number Diff line change
Expand Up
compressedBuffer.writerIndex() - CompressionUtil.SIZE_OF_UNCOMPRESSED_LENGTH);
if (Zstd.isError(decompressedSize)) {
uncompressedBuffer.close();
throw new RuntimeException("Error decompressing: " + Zstd.getErrorName(decompressedLength));
throw new RuntimeException("Error decompressing: " + Zstd.getErrorName(decompressedSize));
}
if (decompressedLength != decompressedSize) {
uncompressedBuffer.close();
Expand Down
Loading
0