viirya commented on a change in pull request #26082: [SPARK-29431][WebUI]
Improve Web UI / Sql tab visualization with cached dataframes.
URL: https://github.com/apache/spark/pull/26082#discussion_r374332582
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkPlanInfo.scala
##########
@@ -73,11 +75,18 @@ private[execution] object SparkPlanInfo {
case fileScan: FileSourceScanExec => fileScan.metadata
case _ => Map[String, String]()
}
+
+ val relation = plan match {
+ case inMemTab: InMemoryTableScanExec =>
Seq(fromSparkPlan(inMemTab.relation.cachedPlan))
+ case _ => Seq()
+ }
Review comment:
Cannot we just add `InMemoryTableScanExec.relation.cachedPlan` into
`children`? Then I think you don't need to add `relation` to `SparkPlanInfo`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]