Rich-T-kid commented on code in PR #10438:
URL: https://github.com/apache/arrow-rs/pull/10438#discussion_r3809586757


##########
arrow-array/src/array/boolean_array.rs:
##########
@@ -607,10 +607,35 @@ impl BooleanArray {
             return self;
         };
 
-        let mut builder = BooleanBufferBuilder::new(len);
-        builder.append_buffer(&self.values.slice(0, end));
-        builder.append_n(len - end, false);
-        BooleanArray::new(builder.finish(), self.nulls)
+        let bit_offset = self.values.offset();
+        let inner_buf = self.values.into_inner();
+
+        match inner_buf.into_mutable() {

Review Comment:
   added a test



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to