arrow_cast::cast

Function cast

Source
pub fn cast(
    array: &dyn Array,
    to_type: &DataType,
) -> Result<ArrayRef, 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