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

Function CreatePlan

cpp/src/arrow/engine/substrait/test_plan_builder.cc:176–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176Result<std::unique_ptr<substrait::Plan>> CreatePlan(std::unique_ptr<substrait::Rel> root,
177 ExtensionSet* ext_set) {
178 auto plan = std::make_unique<substrait::Plan>();
179 plan->set_allocated_version(CreateTestVersion().release());
180
181 substrait::PlanRel* plan_rel = plan->add_relations();
182 auto rel_root = std::make_unique<substrait::RelRoot>();
183 rel_root->set_allocated_input(root.release());
184 plan_rel->set_allocated_root(rel_root.release());
185
186 ARROW_RETURN_NOT_OK(AddExtensionSetToPlan(*ext_set, plan.get()));
187 return plan;
188}
189
190} // namespace
191

Callers 2

CreateScanAggSubstraitFunction · 0.85

Calls 4

CreateTestVersionFunction · 0.85
AddExtensionSetToPlanFunction · 0.85
releaseMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected