| 86 | } |
| 87 | |
| 88 | Status QueryDriver::DoFrontendPlanning(const TQueryCtx& query_ctx, bool use_request) { |
| 89 | // Takes the TQueryCtx and calls into the frontend to initialize the TExecRequest for |
| 90 | // this query. |
| 91 | TExecRequest exec_request; |
| 92 | RETURN_IF_ERROR( |
| 93 | DebugAction(query_ctx.client_request.query_options, "FRONTEND_PLANNER")); |
| 94 | RETURN_IF_ERROR( |
| 95 | ExecEnv::GetInstance()->frontend()->GetExecRequest(query_ctx, &exec_request)); |
| 96 | |
| 97 | DumpTExecReq(exec_request, "internal", client_request_state_->query_id()); |
| 98 | if (use_request) exec_request_.reset(new TExecRequest(move(exec_request))); |
| 99 | return Status::OK(); |
| 100 | } |
| 101 | |
| 102 | Status QueryDriver::RunFrontendPlanner(const TQueryCtx& query_ctx) { |
| 103 | DCHECK(client_request_state_ != nullptr); |
nothing calls this directly
no test coverage detected