arrow::util::bench_util

Function create_dict_from_values

Source
pub fn create_dict_from_values<K>(
    size: usize,
    null_density: f32,
    values: &dyn Array,
) -> DictionaryArray<K>
Expand description

Creates a random (but fixed-seeded) dictionary array of a given size and null density with the provided values array