GitHub user clockfly opened a pull request:
https://github.com/apache/spark/pull/12947
[SPARK-14476][SQL] Improves the output of dataset.explain by adding source
table names and file paths.
## What changes were proposed in this pull request?
Improve the physical plan visualization by adding meta info like table name
and file path for data source.
Meta info InputPaths and TableName are new added. Example:
```
scala> spark.range(10).write.saveAsTable("tt")
scala> spark.sql("select * from tt").explain()
== Physical Plan ==
WholeStageCodegen
: +- BatchedScan HadoopFiles[id#13L] Format: ParquetFormat, InputPaths:
file:/home/xzhong10/spark-linux/assembly/spark-warehouse/tt, PushedFilters: [],
ReadSchema: struct<id:bigint>, TableName: default.tt
```
## How was this patch tested?
manual tests.
Changes for UI:
Before:

After:

You can merge this pull request into a Git repository by running:
$ git pull https://github.com/clockfly/spark spark-14476
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12947.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 #12947
----
commit b1d01c802dc1b38911b5d135d02dc160090e2b87
Author: Sean Zhong <[email protected]>
Date: 2016-05-05T01:23:05Z
[SPARK-14476][SQL] Display table name and path in physical plan for data
source like Hive table
----
---
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]