| 1360 | } |
| 1361 | |
| 1362 | Result<Datum> CallFunction(const std::string& func_name, const std::vector<Datum>& args, |
| 1363 | const FunctionOptions* options, ExecContext* ctx) { |
| 1364 | if (ctx == nullptr) { |
| 1365 | ctx = default_exec_context(); |
| 1366 | } |
| 1367 | ARROW_ASSIGN_OR_RAISE(std::shared_ptr<const Function> func, |
| 1368 | ctx->func_registry()->GetFunction(func_name)); |
| 1369 | return func->Execute(args, options, ctx); |
| 1370 | } |
| 1371 | |
| 1372 | Result<Datum> CallFunction(const std::string& func_name, const std::vector<Datum>& args, |
| 1373 | ExecContext* ctx) { |