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_r310018200
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkPlan.scala
##########
@@ -503,6 +522,14 @@ abstract class SparkPlan extends QueryPlan[SparkPlan]
with Logging with Serializ
trait LeafExecNode extends SparkPlan {
override final def children: Seq[SparkPlan] = Nil
override def producedAttributes: AttributeSet = outputSet
+ override def verboseString(
+ planToOperatorID: mutable.LinkedHashMap[TreeNode[_], Int],
+ codegenId: Option[Int]): String = {
+ s"""
+ |(${operatorIdStr(planToOperatorID)}) $nodeName
${wholestageCodegenIdStr(codegenId)}
+ |Output: ${producedAttributes.mkString("[", ", ", "]")}
Review comment:
@cloud-fan As per our simple rule, we display the output for leaf node.
----------------------------------------------------------------
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]