Defines AggCharIntermediate(INT) returns INT with CHAR(10) intermediate. The function computes the sum of the input.
| 369 | // Defines AggCharIntermediate(INT) returns INT with CHAR(10) intermediate. |
| 370 | // The function computes the sum of the input. |
| 371 | static void ValidateCharIntermediateFunctionContext(const FunctionContext* context) { |
| 372 | assert(context->GetNumArgs() == 1); |
| 373 | assert(context->GetArgType(0)->type == FunctionContext::TYPE_INT); |
| 374 | assert(context->GetIntermediateType().type == FunctionContext::TYPE_FIXED_BUFFER); |
| 375 | assert(context->GetIntermediateType().len == 10); |
| 376 | assert(context->GetReturnType().type == FunctionContext::TYPE_INT); |
| 377 | } |
| 378 | IMPALA_UDF_EXPORT |
| 379 | void AggCharIntermediateInit(FunctionContext* context, StringVal* dst) { |
| 380 | ValidateCharIntermediateFunctionContext(context); |
no test coverage detected