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