arrow_cast::cast::dictionary

Function cast_to_dictionary

Source
pub(crate) fn cast_to_dictionary<K: ArrowDictionaryKeyType>(
    array: &dyn Array,
    dict_value_type: &DataType,
    cast_options: &CastOptions<'_>,
) -> Result<ArrayRef, ArrowError>
Expand description

Attempts to encode an array into an ArrayDictionary with index type K and value (dictionary) type value_type

K is the key type