dilipbiswal commented on a change in pull request #24759: 
[SPARK-27395][SQL][WIP] Improve EXPLAIN command
URL: https://github.com/apache/spark/pull/24759#discussion_r309780131
 
 

 ##########
 File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/trees/TreeNode.scala
 ##########
 @@ -530,12 +530,27 @@ abstract class TreeNode[BaseType <: TreeNode[BaseType]] 
extends Product {
     s"$nodeName ${argString(maxFields)}".trim
   }
 
+  def simpleString(planToOperatorID: mutable.LinkedHashMap[TreeNode[_], Int]): 
String = {
+    val operatorID = planToOperatorID.get(this).map(v => 
s"$v").getOrElse("unknown")
+    s"$nodeName ($operatorID)".trim
+  }
+
   /** ONE line description of this node with more information */
   def verboseString(maxFields: Int): String
 
   /** ONE line description of this node with some suffix information */
   def verboseStringWithSuffix(maxFields: Int): String = 
verboseString(maxFields)
 
+  def verboseString(
+      planToOperatorID: mutable.LinkedHashMap[TreeNode[_], Int],
 
 Review comment:
   @cloud-fan Sounds reasonable. Its been a while :-) Let me try to look at the 
code later today.

----------------------------------------------------------------
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]

Reply via email to