make_scalar_function

Function make_scalar_function 

Source
pub fn make_scalar_function<F>(
    inner: F,
    hints: Vec<Hint>,
) -> impl Fn(&[ColumnarValue])
where F: Fn(&[Arc<dyn Array>]) -> Result<Arc<dyn Array>, DataFusionError>,
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