MCPcopy Create free account
hub / github.com/apache/arrow / AlwaysProvideSameTable

Function AlwaysProvideSameTable

cpp/src/arrow/engine/substrait/serde_test.cc:1059–1065  ·  view source on GitHub ↗

\brief Create a NamedTableProvider that provides `table` regardless of the name

Source from the content-addressed store, hash-verified

1057
1058/// \brief Create a NamedTableProvider that provides `table` regardless of the name
1059NamedTableProvider 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
1067TEST(Substrait, ExecReadRelWithLocalFiles) {
1068#ifdef _WIN32

Callers 2

serde_test.ccFile · 0.85
TESTFunction · 0.85

Calls 1

DeclarationClass · 0.50

Tested by

no test coverage detected