pub fn return_type( fun: &BuiltinScalarFunction, input_expr_types: &[DataType]) -> Result<DataType>
Returns the datatype of the scalar function