Skip to content

Commit

Permalink
Deprecate unused ScalarUDF::fun (#12506)
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi authored Sep 18, 2024
1 parent d3fb595 commit 559a130
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions datafusion/expr/src/udf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 559a130

Please sign in to comment.