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

Method invoke_with_args

datafusion/spark/src/function/map/str_to_map.rs:104–108  ·  view source on GitHub ↗
(&self, args: ScalarFunctionArgs)

Source from the content-addressed store, hash-verified

102 }
103
104 fn invoke_with_args(&self, args: ScalarFunctionArgs) -> Result<ColumnarValue> {
105 let arrays: Vec<ArrayRef> = ColumnarValue::values_to_arrays(&args.args)?;
106 let result = str_to_map_inner(&arrays)?;
107 Ok(ColumnarValue::Array(result))
108 }
109}
110
111fn str_to_map_inner(args: &[ArrayRef]) -> Result<ArrayRef> {

Callers

nothing calls this directly

Calls 2

values_to_arraysFunction · 0.85
str_to_map_innerFunction · 0.85

Tested by

no test coverage detected