Stamatis Zampetakis created IMPALA-14916:
--------------------------------------------
Summary: 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
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)