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

Function ValidateSharedStateClose

be/src/udf/udf-test.cc:181–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181void ValidateSharedStateClose(
182 FunctionContext* context, FunctionContext::FunctionStateScope scope) {
183 if (scope == FunctionContext::THREAD_LOCAL) {
184 void* state = context->GetFunctionState(scope);
185 context->Free(reinterpret_cast<uint8_t*>(state));
186 context->SetFunctionState(scope, nullptr);
187 }
188}
189
190TEST(UdfTest, TestFunctionContext) {
191 EXPECT_TRUE(UdfTestHarness::ValidateUdf<IntVal>(ValidateUdf, IntVal::null()));

Callers

nothing calls this directly

Calls 3

GetFunctionStateMethod · 0.80
SetFunctionStateMethod · 0.80
FreeMethod · 0.45

Tested by

no test coverage detected