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

Method RegexpClose

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

Source from the content-addressed store, hash-verified

1062}
1063
1064void StringFunctions::RegexpClose(
1065 FunctionContext* context, FunctionContext::FunctionStateScope scope) {
1066 if (scope != FunctionContext::THREAD_LOCAL) return;
1067 re2::RE2* re = reinterpret_cast<re2::RE2*>(context->GetFunctionState(scope));
1068 delete re;
1069 context->SetFunctionState(scope, nullptr);
1070}
1071
1072StringVal StringFunctions::RegexpEscape(FunctionContext* context, const StringVal& str) {
1073 if (str.is_null) return StringVal::null();

Callers

nothing calls this directly

Calls 2

GetFunctionStateMethod · 0.80
SetFunctionStateMethod · 0.80

Tested by

no test coverage detected