MCPcopy Create free account
hub / github.com/apache/impala / CreateTree

Method CreateTree

be/src/exec/exec-node.cc:115–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115Status PlanNode::CreateTree(FragmentState* state, const TPlan& plan, PlanNode** root) {
116 if (plan.nodes.size() == 0) {
117 *root = NULL;
118 return Status::OK();
119 }
120 int node_idx = 0;
121 Status status =
122 CreateTreeHelper(state, plan.nodes, NULL, &node_idx, root);
123 if (status.ok() && node_idx + 1 != plan.nodes.size()) {
124 status = Status(
125 "Plan tree only partially reconstructed. Not all thrift nodes were used.");
126 }
127 if (!status.ok()) {
128 LOG(ERROR) << "Could not construct plan tree:\n"
129 << apache::thrift::ThriftDebugString(plan);
130 }
131 return status;
132}
133
134Status PlanNode::CreateTreeHelper(FragmentState* state,
135 const std::vector<TPlanNode>& tnodes, PlanNode* parent, int* node_idx,

Callers

nothing calls this directly

Calls 10

OKFunction · 0.85
ThriftDebugStringFunction · 0.85
push_backMethod · 0.80
AddChildMethod · 0.80
StatusClass · 0.70
sizeMethod · 0.45
okMethod · 0.45
CreateExecNodeMethod · 0.45
runtime_profileMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected