tustvold opened a new issue, #3587: URL: https://github.com/apache/arrow-rs/issues/3587
**Describe the bug** <!-- A clear and concise description of what the bug is. --> `BooleanBufferBuilder` operates on the assumption that unset bits are zeroed, this is not always the case **To Reproduce** <!-- Steps to reproduce the behavior: --> ``` let b = MutableBuffer::from_iter([true, true, true, true]); let mut builder = BooleanBufferBuilder::new_from_buffer(b, 2); builder.advance(2); let finished = builder.finish(); assert_eq!(finished.as_slice(), &[0b00000011]) ``` ``` let mut builder = BooleanBufferBuilder::new(10); builder.append_n(5, true); builder.resize(3); builder.advance(2); let finished = builder.finish(); assert_eq!(finished.as_slice(), &[0b00000111]); ``` **Expected behavior** <!-- A clear and concise description of what you expected to happen. --> **Additional context** <!-- Add any other context about the problem here. --> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org