MCPcopy Create free account
hub / github.com/apache/arrow / GetFunctionExecutor

Function GetFunctionExecutor

cpp/src/arrow/compute/exec.cc:1392–1403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1390}
1391
1392Result<std::shared_ptr<FunctionExecutor>> GetFunctionExecutor(
1393 const std::string& func_name, std::vector<TypeHolder> in_types,
1394 const FunctionOptions* options, FunctionRegistry* func_registry) {
1395 if (func_registry == NULLPTR) {
1396 func_registry = GetFunctionRegistry();
1397 }
1398 ARROW_ASSIGN_OR_RAISE(std::shared_ptr<const Function> func,
1399 func_registry->GetFunction(func_name));
1400 ARROW_ASSIGN_OR_RAISE(auto func_exec, func->GetBestExecutor(std::move(in_types)));
1401 ARROW_RETURN_NOT_OK(func_exec->Init(options));
1402 return func_exec;
1403}
1404
1405Result<std::shared_ptr<FunctionExecutor>> GetFunctionExecutor(
1406 const std::string& func_name, const std::vector<Datum>& args,

Callers

nothing calls this directly

Calls 2

GetFunctionRegistryFunction · 0.85
InitMethod · 0.45

Tested by

no test coverage detected