| 79 | IMPALA_UDF_EXPORT |
| 80 | void AggIntermediate(FunctionContext* context, const IntVal&, StringVal*) {} |
| 81 | static void ValidateFunctionContext(const FunctionContext* context) { |
| 82 | assert(context->GetNumArgs() == 1); |
| 83 | assert(context->GetArgType(0)->type == FunctionContext::TYPE_INT); |
| 84 | assert(context->GetIntermediateType().type == FunctionContext::TYPE_STRING); |
| 85 | assert(context->GetReturnType().type == FunctionContext::TYPE_BIGINT); |
| 86 | } |
| 87 | IMPALA_UDF_EXPORT |
| 88 | void AggIntermediateUpdate(FunctionContext* context, const IntVal&, StringVal*) { |
| 89 | ValidateFunctionContext(context); |
no test coverage detected