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

Function MemTestMerge

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

Source from the content-addressed store, hash-verified

222}
223
224IMPALA_UDF_EXPORT
225void MemTestMerge(FunctionContext* context, const BigIntVal& src, BigIntVal* dst) {
226 if (src.is_null) return;
227 context->TrackAllocation(src.val); // freed by finalize()
228 if (dst->is_null) {
229 *dst = src;
230 return;
231 }
232 dst->val += src.val;
233}
234
235IMPALA_UDF_EXPORT
236BigIntVal MemTestSerialize(FunctionContext* context, const BigIntVal& total) {

Callers

nothing calls this directly

Calls 1

TrackAllocationMethod · 0.80

Tested by

no test coverage detected