GitHub user concretevitamin opened a pull request:
https://github.com/apache/spark/pull/1003
[SPARK-1704][SQL] Fully support EXPLAIN commands as SchemaRDD.
This PR attempts to resolve
[SPARK-1704](https://issues.apache.org/jira/browse/SPARK-1704) by introducing a
physical plan for EXPLAIN commands, which just prints out the debug string
(containing various SparkSQL's plans) of the corresponding QueryExecution for
the actual query.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/concretevitamin/spark explain-cmd
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/1003.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1003
----
commit 408f574fd17730362dac0a6b966d4470df71cc1c
Author: Zongheng Yang <[email protected]>
Date: 2014-06-06T20:51:06Z
SPARK-1704: Add CommandStrategy and ExplainCommandPhysical.
commit 439c6abb689b3859a63ec2b850586b362dc3a3a1
Author: Zongheng Yang <[email protected]>
Date: 2014-06-07T00:02:45Z
Minor cleanups.
----
---
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.
---