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

Function ProvideMadeTable

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

Source from the content-addressed store, hash-verified

4003}
4004
4005NamedTableProvider 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
4016TEST(Substrait, ProjectWithMultiFieldExpressions) {
4017 auto dummy_schema =

Callers 1

TESTFunction · 0.85

Calls 1

DeclarationClass · 0.50

Tested by

no test coverage detected