arrow::util::data_gen

Function create_random_array

Source
pub fn create_random_array(
    field: &Field,
    size: usize,
    null_density: f32,
    true_density: f32,
) -> Result<ArrayRef>
Expand description

Create a random ArrayRef from a DataType with a length, null density and true density (for BooleanArray).