| 1390 | } |
| 1391 | |
| 1392 | Result<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 | |
| 1405 | Result<std::shared_ptr<FunctionExecutor>> GetFunctionExecutor( |
| 1406 | const std::string& func_name, const std::vector<Datum>& args, |
nothing calls this directly
no test coverage detected