From 423b260d268e379d0735acbf2970c6e84605d0ab Mon Sep 17 00:00:00 2001 From: Joe Isaacs Date: Wed, 20 Nov 2024 13:43:02 +0000 Subject: [PATCH] fix --- datafusion/expr/src/expr_fn.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datafusion/expr/src/expr_fn.rs b/datafusion/expr/src/expr_fn.rs index 241d36eb6b6f..e08ac343e5af 100644 --- a/datafusion/expr/src/expr_fn.rs +++ b/datafusion/expr/src/expr_fn.rs @@ -462,8 +462,8 @@ impl ScalarUDFImpl for SimpleScalarUDF { Ok(self.return_type.clone()) } - fn invoke(&self, args: ScalarFunctionArgs) -> Result { - (self.fun)(args.args.as_slice()) + fn invoke_batch(&self, args: &[ColumnarValue], _number_rows: usize) -> Result { + (self.fun)(args) } }