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

Function try_to_scalar

datafusion/spark/src/function/string/format_string.rs:194–199  ·  view source on GitHub ↗
(arg: ColumnarValue, index: usize)

Source from the content-addressed store, hash-verified

192}
193
194fn try_to_scalar(arg: ColumnarValue, index: usize) -> Result<ScalarValue> {
195 match arg {
196 ColumnarValue::Scalar(scalar) => Ok(scalar),
197 ColumnarValue::Array(array) => ScalarValue::try_from_array(&array, index),
198 }
199}
200
201/// Compatible with `java.util.Formatter`
202#[derive(Debug)]

Callers 1

invoke_with_argsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…