Skip to content

Commit

Permalink
Fix Roaring64NavigableMap reading mismatches
Browse files Browse the repository at this point in the history
  • Loading branch information
wzqiang1332 committed Jul 26, 2022
1 parent 7dcfae5 commit 77f949e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ public static ClickHouseBitmap deserialize(DataInputStream in, ClickHouseDataTyp
"Not able to deserialize ClickHouseBitmap for too many bitmaps(>" + 0xFFFFFFFFL + ")!");
}
// read the rest
in.readFully(bytes, 5, len - 5);
in.readFully(bytes, 5, len - 8);
Roaring64NavigableMap b = new Roaring64NavigableMap();
b.deserialize(new DataInputStream(new ByteArrayInputStream(bytes)));
rb = ClickHouseBitmap.wrap(b, innerType);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ public static ClickHouseBitmap deserialize(DataInputStream in, ClickHouseDataTyp
"Not able to deserialize ClickHouseBitmap for too many bitmaps(>" + 0xFFFFFFFFL + ")!");
}
// read the rest
Utils.readFully(in, bytes, 5, len - 5);
Utils.readFully(in, bytes, 5, len - 8);
Roaring64NavigableMap b = new Roaring64NavigableMap();
b.deserialize(new DataInputStream(new ByteArrayInputStream(bytes)));
rb = ClickHouseBitmap.wrap(b, innerType);
Expand Down

0 comments on commit 77f949e

Please sign in to comment.