| 577 | } |
| 578 | |
| 579 | static Result<acero::ExecNode*> Make(acero::ExecPlan* plan, |
| 580 | std::vector<acero::ExecNode*> inputs, |
| 581 | const acero::ExecNodeOptions& options) { |
| 582 | RETURN_NOT_OK(ValidateExecNodeInputs(plan, inputs, 1, "TeeNode")); |
| 583 | |
| 584 | const WriteNodeOptions write_node_options = |
| 585 | checked_cast<const WriteNodeOptions&>(options); |
| 586 | const FileSystemDatasetWriteOptions& write_options = write_node_options.write_options; |
| 587 | const std::shared_ptr<Schema> schema = inputs[0]->output_schema(); |
| 588 | |
| 589 | return plan->EmplaceNode<TeeNode>(plan, std::move(inputs), std::move(schema), |
| 590 | std::move(write_options)); |
| 591 | } |
| 592 | |
| 593 | const char* kind_name() const override { return "TeeNode"; } |
| 594 |
nothing calls this directly
no test coverage detected