MCPcopy Create free account
hub / github.com/apache/impala / BooleanVal BadExpr

Function BooleanVal BadExpr

be/src/testutil/test-udfs.cc:419–428  ·  view source on GitHub ↗

Used by both BadExprPrepare() and BadExpr2Prepare() above.

Source from the content-addressed store, hash-verified

417
418// Used by both BadExprPrepare() and BadExpr2Prepare() above.
419IMPALA_UDF_EXPORT
420BooleanVal BadExpr(FunctionContext* context, const DoubleVal& slot) {
421 static int32_t count = 0;
422 if (slot.is_null) return BooleanVal(false);
423 if (++count > 100) {
424 context->SetError("BadExpr error");
425 return BooleanVal(false);
426 }
427 return BooleanVal(true);
428}
429
430// Used by both BadExprPrepare() and BadExpr2Prepare() above.
431IMPALA_UDF_EXPORT

Callers

nothing calls this directly

Calls 2

BooleanValClass · 0.85
SetErrorMethod · 0.45

Tested by

no test coverage detected