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

    https://github.com/apache/spark/pull/448#discussion_r12351929
  
    --- Diff: core/src/main/scala/org/apache/spark/rdd/RDD.scala ---
    @@ -138,7 +138,7 @@ abstract class RDD[T: ClassTag](
        * it is computed. This can only be used to assign a new storage level 
if the RDD does not
        * have a storage level set yet..
        */
    -  def persist(newLevel: StorageLevel): RDD[T] = {
    +  def persist(newLevel: StorageLevel): this.type = {
         // TODO: Handle changes of StorageLevel
    --- End diff --
    
    @mridulm agree with Patrick, you have to return ```this``` for 
```this.type``` return type.


---
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