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

Kousuke Saruta resolved SPARK-12424.
------------------------------------
    Resolution: Fixed

> 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
>            Assignee: Kousuke Saruta
>             Fix For: 1.6.1, 2.0.0
>
>
> 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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to