diff --git a/arrow-array/src/array/boolean_array.rs b/arrow-array/src/array/boolean_array.rs index 201fcb43eef4..b3014b872e9d 100644 --- a/arrow-array/src/array/boolean_array.rs +++ b/arrow-array/src/array/boolean_array.rs @@ -634,5 +634,12 @@ mod tests { assert_eq!(values.values(), &[0b0000_0001]); assert!(nulls.is_some()); assert_eq!(nulls.unwrap().buffer().as_slice(), &[0b0000_0101]); + + let boolean_array = + BooleanArray::from(vec![false, false, false, false, false, false, false, true]); + let (data_type, values, nulls) = boolean_array.into_parts(); + assert_eq!(data_type, DataType::Boolean); + assert_eq!(values.values(), &[0b1000_0000]); + assert!(nulls.is_none()); } }