Function datafusion::common::arrow::array::make_builder
source ยท pub fn make_builder(
datatype: &DataType,
capacity: usize,
) -> Box<dyn ArrayBuilder>
Expand description
Returns a builder with capacity capacity
that corresponds to the datatype DataType
This function is useful to construct arrays from an arbitrary vectors with known/expected
schema.
See comments on StructBuilder on how to retreive collection builders built by make_builder.