[ 
https://issues.apache.org/jira/browse/SPARK-21016?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

liuxian updated SPARK-21016:
----------------------------
    Description: 
Converting string to number(int, long or double), if the string has a space 
before or after,we are not easy to detect,especially the user configuration.

For example
conf.setConfString(key, "  20")  //has a space in string "  20"
conf.getConf(confEntry, 5)      // This statement fails

> Improve code fault tolerance for converting string to number
> ------------------------------------------------------------
>
>                 Key: SPARK-21016
>                 URL: https://issues.apache.org/jira/browse/SPARK-21016
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 2.3.0
>            Reporter: liuxian
>            Priority: Minor
>
> Converting string to number(int, long or double), if the string has a space 
> before or after,we are not easy to detect,especially the user configuration.
> For example
> conf.setConfString(key, "  20")  //has a space in string "  20"
> conf.getConf(confEntry, 5)      // This statement fails



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to