Skip to content
Snippets Groups Projects
Commit cbf72bff authored by Stephen Haberman's avatar Stephen Haberman
Browse files

Include name, if set, in RDD.toString().

parent 3cda14af
No related branches found
No related tags found
No related merge requests found
......@@ -648,5 +648,10 @@ abstract class RDD[T: ClassManifest](
debugString(this).mkString("\n")
}
override def toString() = "%s[%d] at %s".format(getClass.getSimpleName, id, origin)
override def toString(): String = "%s%s[%d] at %s".format(
Option(name).map(_ + " ").getOrElse(""),
getClass.getSimpleName,
id,
origin)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment