arrow_cast::cast::dictionary

Function pack_array_to_dictionary_via_primitive

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

Pack a data type into a dictionary array passing the values through a primitive array