| 240 | } |
| 241 | |
| 242 | IMPALA_UDF_EXPORT |
| 243 | BigIntVal MemTestFinalize(FunctionContext* context, const BigIntVal& total) { |
| 244 | if (total.is_null) return BigIntVal(0); |
| 245 | context->Free(total.val); |
| 246 | return total; |
| 247 | } |
| 248 | |
| 249 | // Defines aggregate function for testing different intermediate/output types that |
| 250 | // computes the truncated bigint sum of many floats. |