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

Method Open

be/src/exec/union-node.cc:170–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170Status UnionNode::Open(RuntimeState* state) {
171 SCOPED_TIMER(runtime_profile_->total_time_counter());
172 ScopedOpenEventAdder ea(this);
173 RETURN_IF_ERROR(ExecNode::Open(state));
174 // Open const expr lists.
175 for (const vector<ScalarExprEvaluator*>& evals : const_expr_evals_lists_) {
176 RETURN_IF_ERROR(ScalarExprEvaluator::Open(evals, state));
177 }
178 // Open result expr lists.
179 for (const vector<ScalarExprEvaluator*>& evals : child_expr_evals_lists_) {
180 RETURN_IF_ERROR(ScalarExprEvaluator::Open(evals, state));
181 }
182
183 // Ensures that rows are available for clients to fetch after this Open() has
184 // succeeded.
185 if (!children_.empty()) RETURN_IF_ERROR(child(child_idx_)->Open(state));
186 return Status::OK();
187}
188
189Status UnionNode::GetNextPassThrough(RuntimeState* state, RowBatch* row_batch) {
190 DCHECK(!ReachedLimit());

Callers 2

GetNextPassThroughMethod · 0.45
GetNextMaterializedMethod · 0.45

Calls 3

OKFunction · 0.85
total_time_counterMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected