Apache DataFusion SQL Query Engine
Deprecate unused ScalarUDF::fun (#12506)
Piotr Findeisen559a1306d4cb
diff --git a/datafusion/expr/src/udf.rs b/datafusion/expr/src/udf.rsindex 1b3fde8d98..598607ae5e 100644--- a/datafusion/expr/src/udf.rs+++ b/datafusion/expr/src/udf.rs@@ -197,6 +197,7 @@ impl ScalarUDF {/// Returns a `ScalarFunctionImplementation` that can invoke the function/// during execution+ #[deprecated(since = "42.0.0", note = "Use `invoke` or `invoke_no_args` instead")]pub fn fun(&self) -> ScalarFunctionImplementation {let captured = Arc::clone(&self.inner);Arc::new(move |args| captured.invoke(args))