Skip to content

Commit

Permalink
TEMP: call validate_full for all ArrayData
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Nov 30, 2021
1 parent 0a0a74a commit ca5a429
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions arrow/src/array/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,15 +294,20 @@ impl ArrayData {
Some(null_count) => null_count,
};
let null_bitmap = null_bit_buffer.map(Bitmap::from);
Self {
let new_self = Self {
data_type,
len,
null_count,
offset,
buffers,
child_data,
null_bitmap,
}
};

// Bug discovery mechanism: call validate_full here
new_self.validate_full().unwrap();

new_self
}

/// Create a new ArrayData, validating that the provided buffers
Expand Down

0 comments on commit ca5a429

Please sign in to comment.