Philip Zeyliger has posted comments on this change. (
http://gerrit.cloudera.org:8080/11974 )
Change subject: IMPALA-5973: Provide query plan in JSON format
......................................................................
Patch Set 3:
It's a little obscure, but, for running queries, we already have a JSON
representation of a plan that can be queried using the Impala web server. It's
interesting in that it's a representation not just of the plan, but also of
some of the execution statistics of said plan. The code for it is here:
// Helper for PlanToJson(), processes a single list of plan nodes which are the
// DFS-flattened representation of a single plan fragment. Called recursively,
the
// iterator parameter is updated in place so that when a recursive call
returns, the
// caller is pointing at the next of its children.
void PlanToJsonHelper(const map<TPlanNodeId, TPlanNodeExecSummary>& summaries,
const vector<TPlanNode>& nodes,
I think it'd be pretty reasonable to always spit this JSON output into the
profile at query completion.
--
To view, visit http://gerrit.cloudera.org:8080/11974
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I0f07e2223be58b7323e1ea2fa44b62626cdf4944
Gerrit-Change-Number: 11974
Gerrit-PatchSet: 3
Gerrit-Owner: Pranay Singh (320)
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Philip Zeyliger <[email protected]>
Gerrit-Comment-Date: Tue, 27 Nov 2018 19:16:26 +0000
Gerrit-HasComments: No