Github user markhamstra commented on a diff in the pull request:

    https://github.com/apache/spark/pull/1535#discussion_r15259034
  
    --- Diff: core/src/main/scala/org/apache/spark/rdd/RDD.scala ---
    @@ -1294,7 +1307,11 @@ abstract class RDD[T: ClassTag](
           val partitionStr = "(" + rdd.partitions.size + ")"
           val leftOffset = (partitionStr.length - 1) / 2
           val nextPrefix = (" " * leftOffset) + "|" + (" " * 
(partitionStr.length - leftOffset))
    -      Seq(partitionStr + " " + rdd) ++ debugChildren(rdd, nextPrefix)
    +
    +      debugSelf(rdd).zipWithIndex.map{
    +        case (desc: String, 0) => partitionStr+" "+desc
    +        case (desc: String, _) => nextPrefix+" "+desc
    --- End diff --
    
    And elsewhere in this PR, avoid string concatenation with `+` when string 
interpolation would be equally clear or clearer. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to