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

Method invoke_with_args

datafusion/functions/src/unicode/reverse.rs:83–91  ·  view source on GitHub ↗
(&self, args: ScalarFunctionArgs)

Source from the content-addressed store, hash-verified

81 }
82
83 fn invoke_with_args(&self, args: ScalarFunctionArgs) -> Result<ColumnarValue> {
84 let args = &args.args;
85 match args[0].data_type() {
86 Utf8 | Utf8View | LargeUtf8 => make_scalar_function(reverse, vec![])(args),
87 other => {
88 exec_err!("Unsupported data type {other:?} for function reverse")
89 }
90 }
91 }
92
93 fn documentation(&self) -> Option<&Documentation> {
94 self.doc()

Callers

nothing calls this directly

Calls 2

make_scalar_functionFunction · 0.50
data_typeMethod · 0.45

Tested by

no test coverage detected