[
https://issues.apache.org/jira/browse/IMPALA-14916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18089056#comment-18089056
]
ASF subversion and git services commented on IMPALA-14916:
----------------------------------------------------------
Commit b68ad8ffaf16bc08433b00328562549357de815c in impala's branch
refs/heads/master from Stamatis Zampetakis
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=b68ad8ffa ]
IMPALA-14916: Display Calcite plan in EXPLAIN output
1. Add new query option (i.e., ENABLE_EXPLAIN_CALCITE) for controlling
whether the Calcite plan is displayed as part of the EXPLAIN output.
2. Modify the SingleNodePlannerIntf exposing Calcite plan if available.
Use String to avoid dependencies of the module to Calcite.
3. Adapt Planner to check for the respective option when writting the
content for the EXPLAIN.
4. Set the corresponding query option in TpcdsCpuCostPlannerTest to
display the Calcite plan in every file.
5. Set file.encoding to UTF-8 since Calcite plans contain non-ASCII
characters and inconsistent read/write leads to failures.
Change-Id: Iec51e2b4315e95020e1826acfa477aaea4c45601
Reviewed-on: http://gerrit.cloudera.org:8080/24229
Reviewed-by: Michael Smith <[email protected]>
Reviewed-by: Steve Carlin <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
> Display Calcite plan in EXPLAIN output
> --------------------------------------
>
> Key: IMPALA-14916
> URL: https://issues.apache.org/jira/browse/IMPALA-14916
> Project: IMPALA
> Issue Type: Sub-task
> Reporter: Stamatis Zampetakis
> Assignee: Stamatis Zampetakis
> Priority: Major
>
> For performance analysis, debugging, and testing purposes it is useful to be
> able to display the Calcite plan in the EXPLAIN output.
> However, printing it always may be undesirable and noisy so we need a way to
> control when it is displayed or not. There are a few alternatives:
> * Dedicated command (EXPLAIN CALCITE)
> * New explain level (TExplainLevel.CALCITE)
> * New query option (e.g., ENABLE_EXPLAIN_CALCITE)
> If we treat the Calcite plan as additional info to be printed along with all
> the existing content of the EXPLAIN then the new option approach seems
> better. On the other hand, if we opt to display exclusively the Calcite plan
> with nothing more then a new explain level or command would make more sense.
> However, the explain levels so far are rather cumulative so to that respect a
> level that displays only the Calcite plan does not fit well in that model.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]