| 80 | enum ExecPlanReaderStatus { PLAN_NOT_STARTED, PLAN_RUNNING, PLAN_FINISHED }; |
| 81 | |
| 82 | ExecPlanReader(const std::shared_ptr<arrow::acero::ExecPlan>& plan, |
| 83 | const std::shared_ptr<arrow::Schema>& schema, |
| 84 | arrow::AsyncGenerator<std::optional<compute::ExecBatch>> sink_gen) |
| 85 | : schema_(schema), |
| 86 | plan_(plan), |
| 87 | sink_gen_(sink_gen), |
| 88 | plan_status_(PLAN_NOT_STARTED), |
| 89 | stop_token_(MainRThread::GetInstance().GetStopToken()) {} |
| 90 | |
| 91 | std::string PlanStatus() const { |
| 92 | switch (plan_status_) { |
nothing calls this directly
no test coverage detected