arrow_cast::cast::string

Function cast_string_to_interval_impl

Source
fn cast_string_to_interval_impl<'a, I, ArrowType, F>(
    iter: I,
    cast_options: &CastOptions<'_>,
    parse_function: F,
) -> Result<ArrayRef, ArrowError>
where I: Iterator<Item = Option<&'a str>>, ArrowType: ArrowPrimitiveType, F: Fn(&str) -> Result<ArrowType::Native, ArrowError> + Copy,