Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
2.4.0
-
None
Description
The fact that the RDD class has a filter method but not a withFilter method results in compiler warnings when using RDDs in for comprehensions. As of Scala 2.12, falling back to use of filter is no longer supported, so for comprehensions that use filters will no longer compile. Semantically, the only difference between withFilter and filter is that withFilter is lazy, and since RDDs are lazy by nature, one can simply be aliased to the other.