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

Function MakeSingleDeclarationPlan

cpp/src/arrow/engine/substrait/serde.cc:256–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254namespace {
255
256Result<std::shared_ptr<acero::ExecPlan>> MakeSingleDeclarationPlan(
257 std::vector<acero::Declaration> declarations) {
258 if (declarations.size() > 1) {
259 return Status::Invalid("DeserializePlan does not support multiple root relations");
260 } else {
261 ARROW_ASSIGN_OR_RAISE(auto plan, acero::ExecPlan::Make());
262 ARROW_RETURN_NOT_OK(declarations[0].AddToPlan(plan.get()));
263 return plan;
264 }
265}
266
267} // namespace
268

Callers 1

DeserializePlanFunction · 0.85

Calls 4

AddToPlanMethod · 0.80
InvalidFunction · 0.50
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected