Gokul Kolady has uploaded this change for review. ( http://gerrit.cloudera.org:8080/24283
Change subject: IMPALA-14962: Query Profile Parser and Section Retrieval Interface ...................................................................... IMPALA-14962: Query Profile Parser and Section Retrieval Interface This interface exposes stable, JSON-returning tool methods over query profiles so AI-driven analysis can request focused sections like summary, fragments, nodes, and resource estimates instead of parsing raw profile text (avoids exceeding LLM context window limits). Implementation introduces a parser/accessor layer that normalizes profile JSON into query-scoped structures, dispatches named tool calls (get_summary, get_fragment, get_node, etc.), supports argument parsing/validation, and returns consistent JSON outputs suitable for LLM tool-calling. Tests added: query-profile-parsing-tools-test.cc with golden-file validation for all supported tool methods, plus negative-path coverage for rejecting non-JSON profile input. Change-Id: I4d9c9e735aa089bb243b07af421553002a465a88 --- A be/src/service/query-profile-parsing-tools-test.cc A be/src/service/query-profile-parsing-tools.cc A be/src/service/query-profile-parsing-tools.h A testdata/impala-profiles/query-profile-parsing-tools-expected/get_analyzed_query.json A testdata/impala-profiles/query-profile-parsing-tools-expected/get_compilation.json A testdata/impala-profiles/query-profile-parsing-tools-expected/get_execution_profile.json A testdata/impala-profiles/query-profile-parsing-tools-expected/get_fragment_F00.json A testdata/impala-profiles/query-profile-parsing-tools-expected/get_fragment_instances_F00.json A testdata/impala-profiles/query-profile-parsing-tools-expected/get_fragments_overview.json A testdata/impala-profiles/query-profile-parsing-tools-expected/get_node_HDFS_SCAN_NODE_F00.json A testdata/impala-profiles/query-profile-parsing-tools-expected/get_per_node_profiles.json A testdata/impala-profiles/query-profile-parsing-tools-expected/get_query_options.json A testdata/impala-profiles/query-profile-parsing-tools-expected/get_resource_estimates.json A testdata/impala-profiles/query-profile-parsing-tools-expected/get_scan_nodes_summary.json A testdata/impala-profiles/query-profile-parsing-tools-expected/get_summary.json A testdata/impala-profiles/query-profile-parsing-tools-expected/get_tables_queried.json A testdata/impala-profiles/query-profile-parsing-tools-expected/get_timeline.json 17 files changed, 83,246 insertions(+), 0 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/83/24283/1 -- To view, visit http://gerrit.cloudera.org:8080/24283 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I4d9c9e735aa089bb243b07af421553002a465a88 Gerrit-Change-Number: 24283 Gerrit-PatchSet: 1 Gerrit-Owner: Gokul Kolady <[email protected]> Gerrit-Reviewer: Abhishek Rawat <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Jason Fehr <[email protected]> Gerrit-Reviewer: Yida Wu <[email protected]>
