You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/12/18 17:08:46 UTC

[jira] [Assigned] (SPARK-12424) The implementation of ParamMap#filter is wrong.

     [ https://issues.apache.org/jira/browse/SPARK-12424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Apache Spark reassigned SPARK-12424:
------------------------------------

    Assignee:     (was: Apache Spark)

> The implementation of ParamMap#filter is wrong.
> -----------------------------------------------
>
>                 Key: SPARK-12424
>                 URL: https://issues.apache.org/jira/browse/SPARK-12424
>             Project: Spark
>          Issue Type: Bug
>          Components: ML
>    Affects Versions: 1.6.0, 2.0.0
>            Reporter: Kousuke Saruta
>
> ParamMap#filter uses `mutable.Map#filterKeys`. The return type of `filterKey` is collection.Map, not mutable.Map but the result is casted to mutable.Map using `asInstanceOf` so we get `ClassCastException`.
> Also, the return type of Map#filterKeys is not Serializable. It's the issue of Scala (https://issues.scala-lang.org/browse/SI-6654).



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