pub(crate) fn gather_dictionary_values<K: ArrowDictionaryKeyType>( array: &DictionaryArray<K>, ) -> Result<ArrayRef, ArrowError>