Used by both BadExprPrepare() and BadExpr2Prepare() above.
| 417 | |
| 418 | // Used by both BadExprPrepare() and BadExpr2Prepare() above. |
| 419 | IMPALA_UDF_EXPORT |
| 420 | BooleanVal 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. |
| 431 | IMPALA_UDF_EXPORT |
nothing calls this directly
no test coverage detected