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

Method Open

be/src/exprs/scalar-expr-evaluator.cc:146–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146Status ScalarExprEvaluator::Open(RuntimeState* state) {
147 DCHECK(initialized_);
148 if (opened_) return Status::OK();
149 opened_ = true;
150 // Fragment-local state is only initialized for original contexts. Clones inherit the
151 // original's fragment state and only need to have thread-local state initialized.
152 // TODO: Move FRAGMENT_LOCAL state to ScalarExpr. ScalarExprEvaluator should only
153 // have THREAD_LOCAL state.
154 FunctionContext::FunctionStateScope scope =
155 is_clone_ ? FunctionContext::THREAD_LOCAL : FunctionContext::FRAGMENT_LOCAL;
156 return root_.OpenEvaluator(scope, state, this);
157}
158
159Status ScalarExprEvaluator::Open(
160 const vector<ScalarExprEvaluator*>& evals, RuntimeState* state) {

Callers

nothing calls this directly

Calls 3

OKFunction · 0.85
OpenEvaluatorMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected