From b2a133dcca010da20d9f31e4dbce34cf17ba39ef Mon Sep 17 00:00:00 2001 From: shuwenwei Date: Mon, 25 Nov 2024 15:37:46 +0800 Subject: [PATCH] fix bitmap serialize size --- .../src/main/java/org/apache/tsfile/write/record/Tablet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/tsfile/src/main/java/org/apache/tsfile/write/record/Tablet.java b/java/tsfile/src/main/java/org/apache/tsfile/write/record/Tablet.java index 8ff14101..e39d2d06 100644 --- a/java/tsfile/src/main/java/org/apache/tsfile/write/record/Tablet.java +++ b/java/tsfile/src/main/java/org/apache/tsfile/write/record/Tablet.java @@ -602,7 +602,7 @@ private void writeBitMaps(DataOutputStream stream) throws IOException { ReadWriteIOUtils.write(BytesUtils.boolToByte(false), stream); } else { ReadWriteIOUtils.write(BytesUtils.boolToByte(true), stream); - ReadWriteIOUtils.write(bitMaps[i].getTruncatedSize(rowSize), stream); + ReadWriteIOUtils.write(rowSize, stream); ReadWriteIOUtils.write(new Binary(bitMaps[i].getTruncatedByteArray(rowSize)), stream); } }