| 376 | } |
| 377 | |
| 378 | IMPALA_UDF_EXPORT |
| 379 | void ValidateOpenClose( |
| 380 | FunctionContext* context, FunctionContext::FunctionStateScope scope) { |
| 381 | if (scope == FunctionContext::THREAD_LOCAL) { |
| 382 | void* state = context->GetFunctionState(scope); |
| 383 | context->Free(reinterpret_cast<uint8_t*>(state)); |
| 384 | context->SetFunctionState(scope, nullptr); |
| 385 | } |
| 386 | } |
| 387 | |
| 388 | // This prepare function always fails to make sure clean up is done afterwards. |
| 389 | IMPALA_UDF_EXPORT |
nothing calls this directly
no test coverage detected