Skip to main content

cast_byte_container

Function cast_byte_container 

Source
pub(crate) fn cast_byte_container<FROM, TO>(
    array: &dyn Array,
) -> Result<ArrayRef, ArrowError>
where FROM: ByteArrayType, TO: ByteArrayType<Native = FROM::Native>, FROM::Offset: OffsetSizeTrait + ToPrimitive, TO::Offset: OffsetSizeTrait + NumCast,
Expand description

Helper function to cast from one ByteArrayType to another and vice versa. If the target one (e.g., LargeUtf8) is too large for the source array it will return an Error.