cloud-fan commented on a change in pull request #24759: [SPARK-27395][SQL][WIP]
Improve EXPLAIN command
URL: https://github.com/apache/spark/pull/24759#discussion_r313390577
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkPlan.scala
##########
@@ -64,6 +66,22 @@ abstract class SparkPlan extends QueryPlan[SparkPlan] with
Logging with Serializ
protected def sparkContext = sqlContext.sparkContext
+ /**
+ * ONE line description of this node.
+ */
+ override def simpleString(planLabelMap: mutable.LinkedHashMap[QueryPlan[_],
Int]): String = {
+ s"$nodeName (${operatorIdStr(planLabelMap)})".trim
Review comment:
It seems a little fragile to rely on QueryPlan equality to get the operator
ID.
----------------------------------------------------------------
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]