You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Richard W. Eggert II (JIRA)" <ji...@apache.org> on 2016/11/16 05:59:59 UTC
[jira] [Updated] (SPARK-18466) Missing withFilter method causes
warnings when using for comprehensions
[ https://issues.apache.org/jira/browse/SPARK-18466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard W. Eggert II updated SPARK-18466:
-----------------------------------------
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. (was: 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.)
> Missing withFilter method causes warnings when using for comprehensions
> -----------------------------------------------------------------------
>
> Key: SPARK-18466
> URL: https://issues.apache.org/jira/browse/SPARK-18466
> Project: Spark
> Issue Type: Improvement
> Components: Spark Core
> Affects Versions: 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 2.0.0, 2.0.1, 2.0.2
> Reporter: Richard W. Eggert II
> Priority: Minor
> Labels: easyfix
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org