arrow_cast::cast::list

Function cast_values_to_list

Source
pub(crate) fn cast_values_to_list<O: OffsetSizeTrait>(
    array: &dyn Array,
    to: &FieldRef,
    cast_options: &CastOptions<'_>,
) -> Result<ArrayRef, ArrowError>
Expand description

Helper function that takes a primitive array and casts to a (generic) list array.