Function create_array_for_type
Source pub fn create_array_for_type(
data_type: &DataType,
size: usize,
null_density: f32,
) -> ArrayRef
Expand description
Creates a random array for the given DataType, size, and null_density.
Useful for building arrays and record batches in benchmarks without
repeating per-type construction logic. Panics on unsupported types.
ยงPanics
Panics if data_type is not supported