Skip to content

Commit 7316e90

Browse files
authored
[hotfix] ZstdCompressionCodec should use decompressedSize to get error name (#422)
1 parent 45539ee commit 7316e90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fluss-common/src/main/java/com/alibaba/fluss/compression/ZstdArrowCompressionCodec.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ protected ArrowBuf doDecompress(BufferAllocator allocator, ArrowBuf compressedBu
7777
if (Zstd.isError(decompressedSize)) {
7878
uncompressedBuffer.close();
7979
throw new RuntimeException(
80-
"Error decompressing: " + Zstd.getErrorName(decompressedLength));
80+
"Error decompressing: " + Zstd.getErrorName(decompressedSize));
8181
}
8282
if (decompressedLength != decompressedSize) {
8383
uncompressedBuffer.close();

0 commit comments

Comments
 (0)