Function datafusion_common::scalar::get_dict_value

source ·
pub fn get_dict_value<K: ArrowDictionaryKeyType>(
    array: &dyn Array,
    index: usize,
) -> Result<(&ArrayRef, Option<usize>)>
Expand description

Return a reference to the values array and the index into it for a dictionary array

§Errors

Errors if the array cannot be downcasted to DictionaryArray