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

Method invoke_with_args

datafusion/functions/src/math/pi.rs:65–74  ·  view source on GitHub ↗
(&self, args: ScalarFunctionArgs)

Source from the content-addressed store, hash-verified

63 }
64
65 fn invoke_with_args(&self, args: ScalarFunctionArgs) -> Result<ColumnarValue> {
66 assert_or_internal_err!(
67 args.args.is_empty(),
68 "{} function does not accept arguments",
69 self.name()
70 );
71 Ok(ColumnarValue::Scalar(ScalarValue::Float64(Some(
72 std::f64::consts::PI,
73 ))))
74 }
75
76 fn output_ordering(&self, _input: &[ExprProperties]) -> Result<SortProperties> {
77 // This function returns a constant value.

Callers 15

criterion_benchmarkFunction · 0.45
bench_to_timeFunction · 0.45
run_benchmarkFunction · 0.45
invoke_replace_with_argsFunction · 0.45
criterion_benchmarkFunction · 0.45
criterion_benchmarkFunction · 0.45
criterion_benchmarkFunction · 0.45
invoke_substr_with_argsFunction · 0.45
run_with_string_typeFunction · 0.45
run_space_trim_benchmarkFunction · 0.45
criterion_benchmarkFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected