izveigor commented on code in PR #4507:
URL: https://github.com/apache/arrow-rs/pull/4507#discussion_r1269857741


##########
arrow-array/src/array/boolean_array.rs:
##########
@@ -246,6 +246,62 @@ impl BooleanArray {
         });
         Self::new(values, nulls)
     }
+
+    /// Returns `BooleanBuilder` of this boolean array for mutating its values 
if the underlying
+    /// data buffer is not shared by others.
+    pub fn into_builder(self) -> Result<BooleanBuilder, Self> {
+        let len = self.len();
+        let data = self.into_data();
+        let null_bit_buffer = data.nulls().map(|b| b.inner().sliced());
+
+        let buffer = data.buffers()[0].slice_with_length(data.offset(), (len + 
7) / 8);

Review Comment:
   @tustvold Is this feature reasonable from your point of view?



-- 
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