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

Function GetFunctionExecutor

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

Source from the content-addressed store, hash-verified

1380}
1381
1382Result<std::shared_ptr<FunctionExecutor>> GetFunctionExecutor(
1383 const std::string& func_name, std::vector<TypeHolder> in_types,
1384 const FunctionOptions* options, FunctionRegistry* func_registry) {
1385 if (func_registry == NULLPTR) {
1386 func_registry = GetFunctionRegistry();
1387 }
1388 ARROW_ASSIGN_OR_RAISE(std::shared_ptr<const Function> func,
1389 func_registry->GetFunction(func_name));
1390 ARROW_ASSIGN_OR_RAISE(auto func_exec, func->GetBestExecutor(std::move(in_types)));
1391 ARROW_RETURN_NOT_OK(func_exec->Init(options));
1392 return func_exec;
1393}
1394
1395Result<std::shared_ptr<FunctionExecutor>> GetFunctionExecutor(
1396 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