diff options
author | Kousuke Saruta <sarutak@oss.nttdata.co.jp> | 2015-12-29 05:33:19 +0900 |
---|---|---|
committer | Kousuke Saruta <sarutak@oss.nttdata.co.jp> | 2015-12-29 05:33:19 +0900 |
commit | 07165ca06fe0866677525f85fec25e4dbd336674 (patch) | |
tree | 5f949cda3a57bacd56ced1b3bd620e7724dece50 /sql/catalyst | |
parent | e01c6c8664d74d434e9b6b3c8c70570f01d4a0a4 (diff) | |
download | spark-07165ca06fe0866677525f85fec25e4dbd336674.tar.gz spark-07165ca06fe0866677525f85fec25e4dbd336674.tar.bz2 spark-07165ca06fe0866677525f85fec25e4dbd336674.zip |
[SPARK-12424][ML] The implementation of ParamMap#filter is wrong.
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).
Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp>
Closes #10381 from sarutak/SPARK-12424.
Diffstat (limited to 'sql/catalyst')
0 files changed, 0 insertions, 0 deletions