MCPcopy Create free account
hub / github.com/apache/impala / AggCharIntermediateUpdate

Function AggCharIntermediateUpdate

be/src/testutil/test-udas.cc:384–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382 memset(dst->ptr, 0, 10);
383}
384IMPALA_UDF_EXPORT
385void 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}
392IMPALA_UDF_EXPORT
393void AggCharIntermediateMerge(FunctionContext* context, const StringVal& src, StringVal* dst) {
394 ValidateCharIntermediateFunctionContext(context);

Callers

nothing calls this directly

Tested by

no test coverage detected