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

Method AesPrepare

be/src/exprs/string-functions-ir.cc:1938–1948  ·  view source on GitHub ↗

The state is a bool used to reduce excessive logs.

Source from the content-addressed store, hash-verified

1936
1937// The state is a bool used to reduce excessive logs.
1938void StringFunctions::AesPrepare(FunctionContext* context,
1939 FunctionContext::FunctionStateScope scope) {
1940 if (scope != FunctionContext::THREAD_LOCAL) return;
1941 bool* state = reinterpret_cast<bool*>(context->Allocate(sizeof(bool)));
1942 if (state == nullptr) {
1943 context->AddWarning("Failed to allocate memory for function state.");
1944 return;
1945 }
1946 *state = false;
1947 context->SetFunctionState(scope, state);
1948}
1949
1950void StringFunctions::AesClose(FunctionContext* context,
1951 FunctionContext::FunctionStateScope scope) {

Callers

nothing calls this directly

Calls 3

AddWarningMethod · 0.80
SetFunctionStateMethod · 0.80
AllocateMethod · 0.45

Tested by

no test coverage detected