| 450 | } |
| 451 | |
| 452 | IMPALA_UDF_EXPORT |
| 453 | BigIntVal MemTest(FunctionContext* context, const BigIntVal& bytes) { |
| 454 | int64_t* total = reinterpret_cast<int64_t*>( |
| 455 | context->GetFunctionState(FunctionContext::THREAD_LOCAL)); |
| 456 | context->TrackAllocation(bytes.val); |
| 457 | *total += bytes.val; |
| 458 | return bytes; |
| 459 | } |
| 460 | |
| 461 | IMPALA_UDF_EXPORT |
| 462 | void MemTestClose(FunctionContext* context, FunctionContext::FunctionStateScope scope) { |
nothing calls this directly
no test coverage detected