rednaxelafx commented on a change in pull request #23579: [SPARK-26659][SQL] 
Fix duplicate cmd.nodeName in the explain output of DataWritingCommandExec
URL: https://github.com/apache/spark/pull/23579#discussion_r248910745
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/command/commands.scala
 ##########
 @@ -110,6 +110,9 @@ case class DataWritingCommandExec(cmd: DataWritingCommand, 
child: SparkPlan)
 
   override def nodeName: String = "Execute " + cmd.nodeName
 
+  // override the default one, otherwise the `cmd.nodeName` will appear twice 
from simpleString
+  override def argString(maxFields: Int): String = cmd.argString(maxFields)
 
 Review comment:
   Done

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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