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

Method SetError

be/src/udf/udf.cc:452–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452void FunctionContext::SetError(const char* error_msg) {
453 assert(!impl_->closed_);
454 if (impl_->error_msg_.empty()) {
455 impl_->error_msg_ = error_msg;
456 stringstream ss;
457 ss << "UDF ERROR: " << error_msg;
458 if (impl_->state_ != NULL) impl_->state_->SetQueryStatus(ss.str());
459 }
460}
461
462// TODO: is there a way to tell the user the expr in a reasonable way?
463// Plumb the ToSql() from the FE?

Callers 12

ValidateFailFunction · 0.45
CloseMethod · 0.45
CheckAllocResultMethod · 0.45
ResizeMethod · 0.45
SetConstantArgsMethod · 0.45
DecimalVal VarSumFunction · 0.45
BooleanVal TestErrorFunction · 0.45
BadExprPrepareFunction · 0.45
BadExpr2PrepareFunction · 0.45
BooleanVal BadExprFunction · 0.45
ReportBadFormatFunction · 0.45

Calls 3

emptyMethod · 0.45
SetQueryStatusMethod · 0.45
strMethod · 0.45

Tested by 7

ValidateFailFunction · 0.36
SetConstantArgsMethod · 0.36
DecimalVal VarSumFunction · 0.36
BooleanVal TestErrorFunction · 0.36
BadExprPrepareFunction · 0.36
BadExpr2PrepareFunction · 0.36
BooleanVal BadExprFunction · 0.36