Skip to content

Commit

Permalink
Add case for LongParam. (#4885)
Browse files Browse the repository at this point in the history
To support specifying long parameter as String, the same as other basic
type, such as Int, Double ...
  • Loading branch information
firestarman authored and CodingCat committed Sep 25, 2019
1 parent b8433c4 commit 82ee231
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ private[spark] trait ParamMapFuncs extends Params {
set(name, paramValue.toString.toInt)
case _: FloatParam =>
set(name, paramValue.toString.toFloat)
case _: LongParam =>
set(name, paramValue.toString.toLong)
case _: Param[_] =>
set(name, paramValue)
}
Expand Down

0 comments on commit 82ee231

Please sign in to comment.