| 254 | namespace { |
| 255 | |
| 256 | Result<std::shared_ptr<acero::ExecPlan>> MakeSingleDeclarationPlan( |
| 257 | std::vector<acero::Declaration> declarations) { |
| 258 | if (declarations.size() > 1) { |
| 259 | return Status::Invalid("DeserializePlan does not support multiple root relations"); |
| 260 | } else { |
| 261 | ARROW_ASSIGN_OR_RAISE(auto plan, acero::ExecPlan::Make()); |
| 262 | ARROW_RETURN_NOT_OK(declarations[0].AddToPlan(plan.get())); |
| 263 | return plan; |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | } // namespace |
| 268 |
no test coverage detected