pub fn utf8_to_dictionary<O, K>(
    from: &Utf8Array<O>
) -> Result<DictionaryArray<K>, ArrowError> where
    O: Offset,
    K: DictionaryKey
This is supported on crate feature compute_cast only.
Expand description

Cast Utf8Array to DictionaryArray, also known as packing.

Errors

This function errors if the maximum key is smaller than the number of distinct elements in the array.