coerce_scalar

Function coerce_scalar 

Source
fn coerce_scalar(
    target_type: &DataType,
    value: &ScalarValue,
) -> Result<ScalarValue>
Expand description

Casts the given value to target_type. Note that this function only considers Null or Utf8 values.