\brief Create a NamedTableProvider that provides `table` regardless of the name
| 1057 | |
| 1058 | /// \brief Create a NamedTableProvider that provides `table` regardless of the name |
| 1059 | NamedTableProvider AlwaysProvideSameTable(std::shared_ptr<Table> table) { |
| 1060 | return [table = std::move(table)](const std::vector<std::string>&, const Schema&) { |
| 1061 | std::shared_ptr<acero::ExecNodeOptions> options = |
| 1062 | std::make_shared<acero::TableSourceNodeOptions>(table); |
| 1063 | return acero::Declaration("table_source", {}, options, "mock_source"); |
| 1064 | }; |
| 1065 | } |
| 1066 | |
| 1067 | TEST(Substrait, ExecReadRelWithLocalFiles) { |
| 1068 | #ifdef _WIN32 |
no test coverage detected