Uh oh!
There was an error while loading. Please reload this page.
[SPARK-14476][SQL] Improve the physical plan visualization by adding meta info like table name and file path for data source. - #12947
Conversation
davies
commented
May 6, 2016
@clockfly Can we show table name instead of |
SparkQA
commented
May 6, 2016
Test build #57962 has finished for PR 12947 at commit
|
…ata source like Hive table
clockfly
commented
May 6, 2016
I made some changes in UI, please check whether it is better now? |
SparkQA
commented
May 6, 2016
Test build #57995 has finished for PR 12947 at commit
|
davies
commented
May 6, 2016
LGTM. @marmbrus Could you take a quick look on this? |
yhuai
commented
May 6, 2016
@clockfly This PR does not truncate those long strings caused by long paths, right? |
clockfly
commented
May 7, 2016
This PR truncate the long path by 100 chars |
| override def simpleString: String = { | ||
| val metadataEntries = for ((key, value) <- metadata.toSeq.sorted) yield s"$key: $value" | ||
| val metadataEntries = for ((key, value) <- metadata.toSeq.sorted) yield { | ||
| key + ": " + StringUtils.abbreviate(value, 100) |
There was a problem hiding this comment.
Can you play with some long paths and see if 100 is good value (it will be also good to put screenshot in the PR description)?
clockfly
commented
May 10, 2016
@yhuai |
SparkQA
commented
May 10, 2016
Test build #58195 has finished for PR 12947 at commit
|
rxin
commented
May 10, 2016
"HadoopFiles" isn't very useful, and sometimes the files are not even in Hadoop (e.g. it is just using Hadoop APIs to read S3). Can we say "scan" instead, and say the name of the data source? e.g. "parquet scan default.jt4" |
clockfly
commented
May 10, 2016
And for explain: |
SparkQA
commented
May 10, 2016
Test build #58229 has finished for PR 12947 at commit
|
rxin
commented
May 10, 2016
How does it look like when there is no table but just files? |
clockfly
commented
May 10, 2016
Something like "Scan parquet" , but without table name suffix. I will show you an example. |
clockfly
commented
May 10, 2016
For load: |
SparkQA
commented
May 10, 2016
Test build #58250 has finished for PR 12947 at commit
|
| /* Breaks the long string like file path when showing tooltips */ | ||
| .tooltip-inner { | ||
| word-wrap:break-word; | ||
| } No newline at end of file |
davies
commented
May 10, 2016
Could you also update the screen shot in PR description? |
clockfly
commented
May 11, 2016
@davies, Updated. |
SparkQA
commented
May 11, 2016
Test build #58318 has finished for PR 12947 at commit
|
rxin
commented
May 11, 2016
Thanks - merging in master/2.0. |
…meta info like table name and file path for data source.
## 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 newly 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:


Author: Sean Zhong <clockfly@gmail.com>
Closes#12947 from clockfly/spark-14476.
(cherry picked from commit 61e0bdc)
Signed-off-by: Reynold Xin <rxin@databricks.com>davies
commented
May 13, 2016
@clockfly It seems that this does not work with temporary tables, could you send an PR to fix that? |




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 newly added. Example:
How was this patch tested?
manual tests.
Changes for UI:

Before:
After:
