Github user sryza commented on a diff in the pull request:
https://github.com/apache/spark/pull/3310#discussion_r20454820
--- Diff: core/src/main/scala/org/apache/spark/rdd/RDD.scala ---
@@ -1309,7 +1309,7 @@ abstract class RDD[T: ClassTag](
def debugSelf (rdd: RDD[_]): Seq[String] = {
import Utils.bytesToString
- val persistence = storageLevel.description
+ val persistence = if (storageLevel != StorageLevel.NONE)
storageLevel.description else ""
val storageInfo = rdd.context.getRDDStorageInfo.filter(_.id ==
rdd.id).map(info =>
--- End diff --
Oops, right.
One other thing: debugSelf returns `s"$rdd [$persistence]"`. Unless this
is some Scala string syntax I don't understand, we'll end up having square
braces here with nothing inside them, which looks a little weird.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]