try_cast_dictionary

Function try_cast_dictionary 

Source
fn try_cast_dictionary(
    lit_value: &ScalarValue,
    target_type: &DataType,
) -> Option<ScalarValue>
Expand description

Attempt to cast to/from a dictionary type by wrapping/unwrapping the dictionary