GitHub user yanboliang opened a pull request:
https://github.com/apache/spark/pull/4707
[SPARK-5926] [SQL] make DataFrame.explain leverage queryExecution.logical
DataFrame.explain return wrong result when the query is DDL command.
For example, the following two queries should print out the same execution
plan, but it not.
sql("create table tb as select * from src where key > 490").explain(true)
sql("explain extended create table tb as select * from src where key > 490")
This is because DataFrame.explain leverage logicalPlan which had been
forced executed, we should use the unexecuted plan queryExecution.logical.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/yanboliang/spark spark-5926
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/4707.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 #4707
----
commit 0e40a1b5562a58d8e0b77950282be27d2699a539
Author: Yanbo Liang <[email protected]>
Date: 2015-02-20T18:31:01Z
make DataFrame.explain leverage queryExecution.logical
----
---
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]