| 249 | } |
| 250 | |
| 251 | StringVal AggregateFunctions::StringValSerializeOrFinalize( |
| 252 | FunctionContext* ctx, const StringVal& src) { |
| 253 | StringVal result = StringValGetValue(ctx, src); |
| 254 | if (!src.is_null) ctx->Free(src.ptr); |
| 255 | return result; |
| 256 | } |
| 257 | |
| 258 | void AggregateFunctions::CountUpdate( |
| 259 | FunctionContext*, const AnyVal& src, BigIntVal* dst) { |