[ 
https://issues.apache.org/jira/browse/SPARK-33423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17237116#comment-17237116
 ] 

Apache Spark commented on SPARK-33423:
--------------------------------------

User 'AngersZhuuuu' has created a pull request for this issue:
https://github.com/apache/spark/pull/30462

> DoubleParam can't parse a JSON number without decimal places
> ------------------------------------------------------------
>
>                 Key: SPARK-33423
>                 URL: https://issues.apache.org/jira/browse/SPARK-33423
>             Project: Spark
>          Issue Type: Bug
>          Components: MLlib
>    Affects Versions: 2.4.6
>            Reporter: Alexander Bouriakov
>            Priority: Minor
>
> {quote}{color:#0033b3}new {color}DoubleParam({color:#067d17}""{color}, 
> {color:#067d17}""{color}, 
> {color:#067d17}""{color}).jsonDecode({color:#067d17}"1"{color})
> {quote}
>  
> throws an following exception (see below). It would be great if it could make 
> a double from a JInt (trivial)
>  
> {{ java.lang.IllegalArgumentException: Cannot decode JInt(1) to Double.}}
> {{at org.apache.spark.ml.param.DoubleParam$.jValueDecode(params.scala:380)}}
> {{at org.apache.spark.ml.param.DoubleParam.jsonDecode(params.scala:349)}}
> {{at org.apache.spark.ml.param.DoubleParam.jsonDecode(params.scala:330)}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to