This is an automated email from the ASF dual-hosted git repository.

alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new 559a1306d4 Deprecate unused ScalarUDF::fun (#12506)
559a1306d4 is described below

commit 559a1306d4cb4b37c3b73ae828821d9651569ef1
Author: Piotr Findeisen <[email protected]>
AuthorDate: Wed Sep 18 13:56:20 2024 +0200

    Deprecate unused ScalarUDF::fun (#12506)
---
 datafusion/expr/src/udf.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/datafusion/expr/src/udf.rs b/datafusion/expr/src/udf.rs
index 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))


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to