Hello Yida Wu, Kurt Deschler, Abhishek Rawat, Jason Fehr, Impala Public Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/24284
to look at the new patch set (#10).
Change subject: IMPALA-14963: Query Profile AI Analysis Tool
......................................................................
IMPALA-14963: Query Profile AI Analysis Tool
The query profile AI analysis component provides an end-to-end workflow
for generating bottleneck analysis directly from the query details page,
so users can inspect root-cause hypotheses without leaving the Impala UI.
Implementation adds a new /query_ai_analysis tab and template, a
/query_ai_analysis_generate endpoint, and a backend pipeline that loads
the query profile JSON, redacts sensitive identifiers, runs an iterative
tool-calling analysis loop through ai_generate_text, and unredacts the
final response for display. It also extends OpenAI response parsing to
handle native tool_calls payloads and increases AI connection timeout to
better support longer analysis runs.
Tests added: The full end-to-end AI analysis flow was validated on a
local Impala setup using a TPC-DS query profile.
Code Generated-by: Cursor AI
Change-Id: Ia9376b8c56df75032f51abbb76b3ac6927f9107e
---
M be/src/exprs/ai-functions-ir.cc
M be/src/exprs/ai-functions.cc
M be/src/service/CMakeLists.txt
M be/src/service/impala-http-handler.cc
M be/src/service/impala-http-handler.h
A be/src/service/query-profile-ai-analysis.cc
A be/src/service/query-profile-ai-analysis.h
M be/src/util/json-util.h
A www/query_ai_analysis.tmpl
M www/query_detail_tabs.tmpl
10 files changed, 934 insertions(+), 6 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/84/24284/10
--
To view, visit http://gerrit.cloudera.org:8080/24284
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ia9376b8c56df75032f51abbb76b3ac6927f9107e
Gerrit-Change-Number: 24284
Gerrit-PatchSet: 10
Gerrit-Owner: Gokul Kolady <[email protected]>
Gerrit-Reviewer: Abhishek Rawat <[email protected]>
Gerrit-Reviewer: Gokul Kolady <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Jason Fehr <[email protected]>
Gerrit-Reviewer: Kurt Deschler <[email protected]>
Gerrit-Reviewer: Yida Wu <[email protected]>