| 57 | } |
| 58 | |
| 59 | std::shared_ptr<acero::ExecNode> MakeExecNodeOrStop( |
| 60 | const std::string& factory_name, acero::ExecPlan* plan, |
| 61 | std::vector<acero::ExecNode*> inputs, const acero::ExecNodeOptions& options) { |
| 62 | return std::shared_ptr<acero::ExecNode>( |
| 63 | ValueOrStop(acero::MakeExecNode(factory_name, plan, std::move(inputs), options)), |
| 64 | [](...) { |
| 65 | // empty destructor: ExecNode lifetime is managed by an ExecPlan |
| 66 | }); |
| 67 | } |
| 68 | |
| 69 | // This class is a special RecordBatchReader that holds a reference to the |
| 70 | // underlying exec plan so that (1) it can request that the ExecPlan *stop* |
no test coverage detected