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

Method invoke_with_args

datafusion/functions/src/core/overlay.rs:98–108  ·  view source on GitHub ↗
(&self, args: ScalarFunctionArgs)

Source from the content-addressed store, hash-verified

96 }
97
98 fn invoke_with_args(&self, args: ScalarFunctionArgs) -> Result<ColumnarValue> {
99 match args.args[0].data_type() {
100 DataType::Utf8View | DataType::Utf8 => {
101 make_scalar_function(overlay::<i32>, vec![])(&args.args)
102 }
103 DataType::LargeUtf8 => {
104 make_scalar_function(overlay::<i64>, vec![])(&args.args)
105 }
106 other => exec_err!("Unsupported data type {other:?} for function overlay"),
107 }
108 }
109
110 fn documentation(&self) -> Option<&Documentation> {
111 self.doc()

Callers

nothing calls this directly

Calls 2

make_scalar_functionFunction · 0.50
data_typeMethod · 0.45

Tested by

no test coverage detected