You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/04/23 10:21:30 UTC
[GitHub] [spark] Ngone51 commented on a change in pull request #28315: [SPARK-31529][SQL] Remove redundant whitespaces in formatted explain
Ngone51 commented on a change in pull request #28315:
URL: https://github.com/apache/spark/pull/28315#discussion_r413695768
##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/QueryPlan.scala
##########
@@ -195,24 +195,27 @@ abstract class QueryPlan[PlanType <: QueryPlan[PlanType]] extends TreeNode[PlanT
}
def verboseStringWithOperatorId(): String = {
- val codegenIdStr =
- getTagValue(QueryPlan.CODEGEN_ID_TAG).map(id => s"[codegen id : $id]").getOrElse("")
- val operatorId = getTagValue(QueryPlan.OP_ID_TAG).map(id => s"$id").getOrElse("unknown")
- val baseStr = s"($operatorId) $nodeName $codegenIdStr"
Review comment:
There will be an extra space behind `$nodeName` when `$codegenIdStr` is empty.
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org