Skip to content

Commit

Permalink
Merge branch 'develop' into enhance-jdbc
Browse files Browse the repository at this point in the history
  • Loading branch information
zhicwu committed Nov 30, 2021
2 parents eb1f1ed + 8a4aee2 commit 104d33d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -441,15 +441,15 @@ public static ClickHouseBitmap deserialize(byte[] bytes, ClickHouseDataType inne
}
// replace the last 5 bytes to flag(boolean for signed/unsigned) and map
// size(integer)
buffer.position(buffer.position() - 5);
((Buffer) buffer).position(buffer.position() - 5);
// always unsigned due to limit of CRoaring
buffer.put((byte) 0);
// big-endian -> little-endian
for (int i = 3; i >= 0; i--) {
buffer.put(bitmaps[i]);
}

buffer.position(buffer.position() - 5);
((Buffer) buffer).position(buffer.position() - 5);
bitmaps = new byte[buffer.remaining()];
buffer.get(bitmaps);
Roaring64NavigableMap b = new Roaring64NavigableMap();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,15 +363,15 @@ public static ClickHouseBitmap deserialize(byte[] bytes, ClickHouseDataType inne
}
// replace the last 5 bytes to flag(boolean for signed/unsigned) and map
// size(integer)
buffer.position(buffer.position() - 5);
((Buffer) buffer).position(buffer.position() - 5);
// always unsigned due to limit of CRoaring
buffer.put((byte) 0);
// big-endian -> little-endian
for (int i = 3; i >= 0; i--) {
buffer.put(bitmaps[i]);
}

buffer.position(buffer.position() - 5);
((Buffer) buffer).position(buffer.position() - 5);
bitmaps = new byte[buffer.remaining()];
buffer.get(bitmaps);
Roaring64NavigableMap b = new Roaring64NavigableMap();
Expand Down

0 comments on commit 104d33d

Please sign in to comment.