Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
robert3005 committed Aug 16, 2024
1 parent e8a77c4 commit 3bc4346
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vortex-serde/src/layouts/reader/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ impl<R: VortexReadAt + Unpin + Send + 'static> Stream for VortexLayoutBatchStrea
fn null_as_false(array: BoolArray) -> VortexResult<Array> {
match array.validity() {
Validity::NonNullable => Ok(array.into_array()),
Validity::AllValid => Ok(array.into_array()),
Validity::AllValid => {
Ok(BoolArray::try_new(array.boolean_buffer(), Validity::NonNullable)?.into_array())
}
Validity::AllInvalid => Ok(BoolArray::from(vec![false; array.len()]).into_array()),
Validity::Array(v) => {
let bool_buffer = &array.boolean_buffer() & &v.into_bool()?.boolean_buffer();
Expand Down

0 comments on commit 3bc4346

Please sign in to comment.