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

Function AggCharIntermediateMerge

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

Source from the content-addressed store, hash-verified

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);
395 int* dst_val = reinterpret_cast<int*>(dst->ptr);
396 *dst_val += *reinterpret_cast<int*>(src.ptr);
397}
398IMPALA_UDF_EXPORT
399StringVal AggCharIntermediateSerialize(FunctionContext* context, const StringVal& in) {
400 ValidateCharIntermediateFunctionContext(context);

Callers

nothing calls this directly

Tested by

no test coverage detected