Skip to content

Commit f1fd621

Browse files
authored
MINOR: ZstdCompressionCodec should use decompressedSize to get error name (#619)
1 parent b47e499 commit f1fd621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compression/src/main/java/org/apache/arrow/compression/ZstdCompressionCodec.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ protected ArrowBuf doDecompress(BufferAllocator allocator, ArrowBuf compressedBu
6868
compressedBuffer.writerIndex() - CompressionUtil.SIZE_OF_UNCOMPRESSED_LENGTH);
6969
if (Zstd.isError(decompressedSize)) {
7070
uncompressedBuffer.close();
71-
throw new RuntimeException("Error decompressing: " + Zstd.getErrorName(decompressedLength));
71+
throw new RuntimeException("Error decompressing: " + Zstd.getErrorName(decompressedSize));
7272
}
7373
if (decompressedLength != decompressedSize) {
7474
uncompressedBuffer.close();

0 commit comments

Comments
 (0)