datafusion_common::scalar

Function 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