planga82 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_r374506097
##########
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:
I do in that way because I don't want to impact in other parts of the code.
As in InMemoryTableScan is treated as a relation(not a children) I do in the
same way in SparkPlanInfo.
It's possible that if we add directly to children it don't affect
unexpectedly but I'm not sure.
----------------------------------------------------------------
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]