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: ![ui_before_change](https://cloud.githubusercontent.com/assets/2595532/15064559/3d423e3c-1388-11e6-8099-7803ef496c4d.jpg) After: ![ui_after_change](https://cloud.githubusercontent.com/assets/2595532/15064569/44c5e7e4-1388-11e6-9770-68f4b31a99a9.jpg) 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 <clock...@gmail.com> 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org