Function datafusion::common::arrow::compute::cast

source ยท
pub fn cast(
    array: &dyn Array,
    to_type: &DataType,
) -> Result<Arc<dyn Array>, ArrowError>
Expand description

Cast array to the provided data type and return a new Array with type to_type, if possible.

See cast_with_options for more information