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

Method GetError

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

Source from the content-addressed store, hash-verified

220}
221
222Status ScalarExprEvaluator::GetError(int start_idx, int end_idx) const {
223 DCHECK(opened_);
224 end_idx = end_idx == -1 ? fn_ctxs_.size() : end_idx;
225 DCHECK_GE(start_idx, 0);
226 DCHECK_LE(end_idx, fn_ctxs_.size());
227 for (int idx = start_idx; idx < end_idx; ++idx) {
228 DCHECK_LT(idx, fn_ctxs_.size());
229 FunctionContext* fn_ctx = fn_ctxs_[idx];
230 if (fn_ctx->has_error()) return Status(fn_ctx->error_msg());
231 }
232 return Status::OK();
233}
234
235Status ScalarExprEvaluator::GetConstValue(RuntimeState* state, const ScalarExpr& expr,
236 AnyVal** const_val) {

Calls 5

OKFunction · 0.85
has_errorMethod · 0.80
error_msgMethod · 0.80
StatusClass · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected