| 69 | } |
| 70 | |
| 71 | void CaseExpr::CloseEvaluator(FunctionContext::FunctionStateScope scope, |
| 72 | RuntimeState* state, ScalarExprEvaluator* eval) const { |
| 73 | DCHECK_GE(fn_ctx_idx_, 0); |
| 74 | FunctionContext* fn_ctx = eval->fn_context(fn_ctx_idx_); |
| 75 | void* case_state = fn_ctx->GetFunctionState(FunctionContext::THREAD_LOCAL); |
| 76 | fn_ctx->Free(reinterpret_cast<uint8_t*>(case_state)); |
| 77 | fn_ctx->SetFunctionState(FunctionContext::THREAD_LOCAL, nullptr); |
| 78 | ScalarExpr::CloseEvaluator(scope, state, eval); |
| 79 | } |
| 80 | |
| 81 | string CaseExpr::DebugString() const { |
| 82 | stringstream out; |
no test coverage detected