| 14 | } |
| 15 | |
| 16 | ScalarFunction ScalarFunctionSet::GetFunctionByArguments(ClientContext &context, const vector<LogicalType> &arguments) { |
| 17 | ErrorData error; |
| 18 | FunctionBinder binder(context); |
| 19 | auto index = binder.BindFunction(name, *this, arguments, error); |
| 20 | if (!index.IsValid()) { |
| 21 | throw InternalException("Failed to find function %s(%s)\n%s", name, StringUtil::ToString(arguments, ","), |
| 22 | error.Message()); |
| 23 | } |
| 24 | return GetFunctionByOffset(index.GetIndex()); |
| 25 | } |
| 26 | |
| 27 | AggregateFunctionSet::AggregateFunctionSet() : FunctionSet("") { |
| 28 | } |
no test coverage detected