| 382 | memset(dst->ptr, 0, 10); |
| 383 | } |
| 384 | IMPALA_UDF_EXPORT |
| 385 | void AggCharIntermediateUpdate( |
| 386 | FunctionContext* context, const IntVal& val, StringVal* dst) { |
| 387 | ValidateCharIntermediateFunctionContext(context); |
| 388 | assert(dst->len == 10); |
| 389 | int* dst_val = reinterpret_cast<int*>(dst->ptr); |
| 390 | if (!val.is_null) *dst_val += val.val; |
| 391 | } |
| 392 | IMPALA_UDF_EXPORT |
| 393 | void AggCharIntermediateMerge(FunctionContext* context, const StringVal& src, StringVal* dst) { |
| 394 | ValidateCharIntermediateFunctionContext(context); |
nothing calls this directly
no test coverage detected