Skip to content

Commit 0cf1ff6

Browse files
committed
truncate
1 parent 67dae63 commit 0cf1ff6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arrow-buffer/src/buffer/boolean.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ impl BooleanBuffer {
221221
iter.chain(Some(read_u64(remainder))).map(&mut op).collect()
222222
};
223223

224+
// TODO - this is not ideal as it removes the u64 aligment without reducing the allocated size
225+
// but various operations expect the output buffer to be the number of output bits
224226
vec_u64s.truncate(ceil(len_in_bits, 8));
225227

226228
BooleanBuffer::new(Buffer::from(vec_u64s), start_bit, len_in_bits)

0 commit comments

Comments
 (0)