arrow_cast::cast::string

Function cast_view_to_timestamp

Source
pub(crate) fn cast_view_to_timestamp<T: ArrowTimestampType>(
    array: &dyn Array,
    to_tz: &Option<Arc<str>>,
    cast_options: &CastOptions<'_>,
) -> Result<ArrayRef, ArrowError>
Expand description

Casts string view arrays to an ArrowTimestampType (TimeStampNanosecondArray, etc.)