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

Function ValidateOpenClose

be/src/testutil/test-udfs.cc:378–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376}
377
378IMPALA_UDF_EXPORT
379void 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.
389IMPALA_UDF_EXPORT

Callers

nothing calls this directly

Calls 3

GetFunctionStateMethod · 0.80
SetFunctionStateMethod · 0.80
FreeMethod · 0.45

Tested by

no test coverage detected