Add case for LongParam. (#4885)
To support specifying long parameter as String, the same as other basic type, such as Int, Double ...
This commit is contained in:
parent
b8433c455a
commit
82ee2317e8
@ -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)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user