Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-isaacs committed Nov 20, 2024
1 parent 912f691 commit 423b260
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datafusion/expr/src/expr_fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,8 @@ impl ScalarUDFImpl for SimpleScalarUDF {
Ok(self.return_type.clone())
}

fn invoke(&self, args: ScalarFunctionArgs) -> Result<ColumnarValue> {
(self.fun)(args.args.as_slice())
fn invoke_batch(&self, args: &[ColumnarValue], _number_rows: usize) -> Result<ColumnarValue> {
(self.fun)(args)
}
}

Expand Down

0 comments on commit 423b260

Please sign in to comment.