{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/10381","labels_url":"https://api.github.com/repos/apache/spark/issues/10381/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/10381/comments","events_url":"https://api.github.com/repos/apache/spark/issues/10381/events","html_url":"https://github.com/apache/spark/pull/10381","id":122970664,"number":10381,"title":"[SPARK-12424][ML] The implementation of ParamMap#filter is wrong.","user":{"login":"sarutak","id":4736016,"avatar_url":"https://avatars.githubusercontent.com/u/4736016?v=3","gravatar_id":"","url":"https://api.github.com/users/sarutak","html_url":"https://github.com/sarutak","followers_url":"https://api.github.com/users/sarutak/followers","following_url":"https://api.github.com/users/sarutak/following{/other_user}","gists_url":"https://api.github.com/users/sarutak/gists{/gist_id}","starred_url":"https://api.github.com/users/sarutak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarutak/subscriptions","organizations_url":"https://api.github.com/users/sarutak/orgs","repos_url":"https://api.github.com/users/sarutak/repos","events_url":"https://api.github.com/users/sarutak/events{/privacy}","received_events_url":"https://api.github.com/users/sarutak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-18T15:41:15Z","updated_at":"2015-12-18T21:04:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/10381","html_url":"https://github.com/apache/spark/pull/10381","diff_url":"https://github.com/apache/spark/pull/10381.diff","patch_url":"https://github.com/apache/spark/pull/10381.patch"},"body":"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`.\r\nAlso, the return type of Map#filterKeys is not Serializable. It's the issue of Scala (https://issues.scala-lang.org/browse/SI-6654)."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/165897372","html_url":"https://github.com/apache/spark/pull/10381#issuecomment-165897372","issue_url":"https://api.github.com/repos/apache/spark/issues/10381","id":165897372,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars.githubusercontent.com/u/8108735?v=3","gravatar_id":"","url":"https://api.github.com/users/SparkQA","html_url":"https://github.com/SparkQA","followers_url":"https://api.github.com/users/SparkQA/followers","following_url":"https://api.github.com/users/SparkQA/following{/other_user}","gists_url":"https://api.github.com/users/SparkQA/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkQA/subscriptions","organizations_url":"https://api.github.com/users/SparkQA/orgs","repos_url":"https://api.github.com/users/SparkQA/repos","events_url":"https://api.github.com/users/SparkQA/events{/privacy}","received_events_url":"https://api.github.com/users/SparkQA/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T21:04:25Z","updated_at":"2015-12-18T21:04:25Z","body":"**[Test build #48019 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/48019/consoleFull)** for PR 10381 at commit [`080e983`](https://github.com/apache/spark/commit/080e983bca0bbc311a4cf0b8e88f90caba3243b9).\n * This patch passes all tests.\n * This patch merges cleanly.\n * This patch adds no public classes."}}