pub fn dictionary_to_dictionary_keys<K1, K2>(
    from: &DictionaryArray<K1>
) -> Result<DictionaryArray<K2>> where
    K1: DictionaryKey + NumCast,
    K2: DictionaryKey + NumCast
Available on crate feature compute_cast only.
Expand description

Casts a DictionaryArray to a new DictionaryArray backed by a different physical type of the keys, while keeping the values equal.

Errors

Errors if any of the old keys’ values is larger than the maximum value supported by the new physical type.