| 4003 | } |
| 4004 | |
| 4005 | NamedTableProvider ProvideMadeTable( |
| 4006 | std::function<Result<std::shared_ptr<Table>>(const std::vector<std::string>&)> make) { |
| 4007 | return [make](const std::vector<std::string>& names, |
| 4008 | const Schema&) -> Result<acero::Declaration> { |
| 4009 | ARROW_ASSIGN_OR_RAISE(auto table, make(names)); |
| 4010 | std::shared_ptr<acero::ExecNodeOptions> options = |
| 4011 | std::make_shared<acero::TableSourceNodeOptions>(table); |
| 4012 | return acero::Declaration("table_source", {}, options, "mock_source"); |
| 4013 | }; |
| 4014 | } |
| 4015 | |
| 4016 | TEST(Substrait, ProjectWithMultiFieldExpressions) { |
| 4017 | auto dummy_schema = |