dilipbiswal commented on a change in pull request #24759: [SPARK-27395][SQL]
Improve EXPLAIN command
URL: https://github.com/apache/spark/pull/24759#discussion_r316448584
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/QueryPlan.scala
##########
@@ -179,6 +180,20 @@ abstract class QueryPlan[PlanType <: QueryPlan[PlanType]]
extends TreeNode[PlanT
override def verboseString(maxFields: Int): String = simpleString(maxFields)
+ override def simpleStringWithNodeId(): String = {
+ val operatorId = getTagValue(QueryPlan.OP_ID_TAG).map(id =>
s"$id").getOrElse("unknown")
Review comment:
@cloud-fan Actually i had tried.. but ExplainUtils is in execution package
:-). I couldn't move it to catalyst as it refers to physical operator classes.
----------------------------------------------------------------
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]