[jira] [Commented] (SPARK-18772) Parsing JSON with some NaN and Infinity values throws NumberFormatException

2017-05-11 Thread Apache Spark (JIRA)

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

Apache Spark commented on SPARK-18772:
--

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

> Parsing JSON with some NaN and Infinity values throws NumberFormatException
> ---
>
> Key: SPARK-18772
> URL: https://issues.apache.org/jira/browse/SPARK-18772
> Project: Spark
>  Issue Type: Bug
>  Components: SQL
>Affects Versions: 2.0.2
>Reporter: Nathan Howell
>Priority: Minor
>
> JacksonParser tests for infinite and NaN values in a way that is not 
> supported by the underlying float/double parser. For example, the input 
> string is always lowercased to check for {{-Infinity}} but the parser only 
> supports titlecased values. So a {{-infinitY}} will pass the test but fail 
> with a {{NumberFormatException}} when parsing. This exception is not caught 
> anywhere and the task ends up failing.
> A related issue is that the code checks for {{Inf}} but the parser only 
> supports the long form of {{Infinity}}.



--
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



[jira] [Commented] (SPARK-18772) Parsing JSON with some NaN and Infinity values throws NumberFormatException

2016-12-07 Thread Apache Spark (JIRA)

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

Apache Spark commented on SPARK-18772:
--

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

> Parsing JSON with some NaN and Infinity values throws NumberFormatException
> ---
>
> Key: SPARK-18772
> URL: https://issues.apache.org/jira/browse/SPARK-18772
> Project: Spark
>  Issue Type: Bug
>  Components: SQL
>Affects Versions: 2.0.2
>Reporter: Nathan Howell
>Priority: Minor
>
> JacksonParser tests for infinite and NaN values in a way that is not 
> supported by the underlying float/double parser. For example, the input 
> string is always lowercased to check for {{-Infinity}} but the parser only 
> supports titlecased values. So a {{-infinitY}} will pass the test but fail 
> with a {{NumberFormatException}} when parsing. This exception is not caught 
> anywhere and the task ends up failing.
> A related issue is that the code checks for {{Inf}} but the parser only 
> supports the long form of {{Infinity}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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