MCPcopy Create free account
hub / github.com/apache/datafusion / as_dictionary_array

Function as_dictionary_array

datafusion/common/src/cast.rs:163–167  ·  view source on GitHub ↗

Downcast Array to DictionaryArray

(
    array: &dyn Array,
)

Source from the content-addressed store, hash-verified

161
162// Downcast Array to DictionaryArray
163pub fn as_dictionary_array<T: ArrowDictionaryKeyType>(
164 array: &dyn Array,
165) -> Result<&DictionaryArray<T>> {
166 Ok(downcast_value!(array, DictionaryArray, T))
167}
168
169// Downcast Array to GenericBinaryArray
170pub fn as_generic_binary_array<T: OffsetSizeTrait>(

Callers 4

test_dictionary_hex_utf8Function · 0.85
test_dict_values_nullFunction · 0.85

Calls

no outgoing calls

Tested by 4

test_dictionary_hex_utf8Function · 0.68
test_dict_values_nullFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…