| 1380 | } |
| 1381 | |
| 1382 | Result<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 | |
| 1395 | Result<std::shared_ptr<FunctionExecutor>> GetFunctionExecutor( |
| 1396 | const std::string& func_name, const std::vector<Datum>& args, |
nothing calls this directly
no test coverage detected