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

Method QueryAiAnalysisHandler

be/src/service/impala-http-handler.cc:341–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341void ImpalaHttpHandler::QueryAiAnalysisHandler(const Webserver::WebRequest& req,
342 Document* document) {
343 TUniqueId unique_id;
344 Status parse_status = ParseIdFromRequest(req, &unique_id, "query_id");
345 if (!parse_status.ok()) {
346 Value error(parse_status.GetDetail(), document->GetAllocator());
347 document->AddMember("error", error, document->GetAllocator());
348 return;
349 }
350
351 Value query_id_val(PrintId(unique_id), document->GetAllocator());
352 document->AddMember("query_id", query_id_val, document->GetAllocator());
353}
354
355void ImpalaHttpHandler::QueryProfileHelper(const Webserver::WebRequest& req,
356 Document* document, TRuntimeProfileFormat::type format, bool internal_profile) {

Callers

nothing calls this directly

Calls 5

ParseIdFromRequestFunction · 0.85
PrintIdFunction · 0.85
GetDetailMethod · 0.80
okMethod · 0.45
AddMemberMethod · 0.45

Tested by

no test coverage detected