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

Function MinFinalize

be/src/udf/uda-test.cc:137–143  ·  view source on GitHub ↗

Finalize also just returns the string so is the same as MinSerialize.

Source from the content-addressed store, hash-verified

135
136// Finalize also just returns the string so is the same as MinSerialize.
137StringVal MinFinalize(FunctionContext* context, const BufferVal& val) {
138 const MinState* state = reinterpret_cast<const MinState*>(val);
139 if (state->value == NULL) return StringVal::null();
140 StringVal result = StringVal::CopyFrom(context, state->value, state->len);
141 context->Free(state->value);
142 return result;
143}
144
145//----------------------------- Bits after Xor ------------------------------------
146// Example of a UDA that xors all the input bits and then returns the number of

Callers

nothing calls this directly

Calls 1

FreeMethod · 0.45

Tested by

no test coverage detected