Function make_scalar_function

Source
pub fn make_scalar_function<F>(
    inner: F,
    hints: Vec<Hint>,
) -> impl Fn(&[ColumnarValue]) -> Result<ColumnarValue>
where F: Fn(&[ArrayRef]) -> Result<ArrayRef>,
Expand description

Creates a scalar function implementation for the given function.

  • inner - the function to be executed
  • hints - hints to be used when expanding scalars to arrays