MCPcopy Create free account
hub / github.com/duckdb/duckdb / GetFunctionByArguments

Method GetFunctionByArguments

src/function/function_set.cpp:16–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16ScalarFunction 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
27AggregateFunctionSet::AggregateFunctionSet() : FunctionSet("") {
28}

Callers 6

BindExtensionFunctionFunction · 0.80
DeserializeFunctionMethod · 0.80
AddStructExtractExprsMethod · 0.80

Calls 6

InternalExceptionClass · 0.85
idMethod · 0.80
BindFunctionMethod · 0.45
IsValidMethod · 0.45
GetIndexMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected