Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/12991#discussion_r62437268
--- Diff:
sql/catalyst/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBase.g4 ---
@@ -92,7 +92,7 @@ statement
| CREATE TEMPORARY? FUNCTION qualifiedName AS className=STRING
(USING resource (',' resource)*)?
#createFunction
| DROP TEMPORARY? FUNCTION (IF EXISTS)? qualifiedName
#dropFunction
- | EXPLAIN explainOption* statement
#explain
+ | EXPLAIN (LOGICAL | FORMATTED | EXTENDED | CODEGEN)? statement
#explain
--- End diff --
: ) Based on my understanding, it outputs optimized logical plan.
https://issues.apache.org/jira/browse/HIVE-4812 Thus, I assume we do not need
to support `Explain Logical`, which is already included in our current `Explain
Extended`. Let me know if we want to support it. This is an undocumented Hive
feature.
Compared with Hive, we are not following what Hive does. For example,
`Explain Extended` only outputs the AST and Physical plan.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]