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

Hudson commented on AVRO-1454:
------------------------------

SUCCESS: Integrated in AvroJava #443 (See 
[https://builds.apache.org/job/AvroJava/443/])
AVRO-1454. Java: Fix GenericData#toString and AvroAsTextRecordReader to 
generate valid Json for NaN and infinities. (cutting: rev 1573670)
* /avro/trunk/CHANGES.txt
* 
/avro/trunk/lang/java/avro/src/main/java/org/apache/avro/generic/GenericData.java
* 
/avro/trunk/lang/java/avro/src/test/java/org/apache/avro/generic/TestGenericData.java
* 
/avro/trunk/lang/java/mapred/src/main/java/org/apache/avro/mapred/AvroAsTextRecordReader.java


> AvroAsTextInput format creates invalid JSON for NaN values
> ----------------------------------------------------------
>
>                 Key: AVRO-1454
>                 URL: https://issues.apache.org/jira/browse/AVRO-1454
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.7.5
>            Reporter: Antonio Piccolboni
>            Assignee: Doug Cutting
>             Fix For: 1.7.7
>
>         Attachments: AVRO-1454.patch, AVRO-1454.patch, AVRO-1454.patch
>
>
> The AvroAsTextInput format generates a record containing
> [omitted] , "someName": NaN}
> A json parser chokes on that and it is not legal JSON AFAIK. In related 
> issues AVRO-972 and AVRO-1290 it is resolved, for lack of a better option, to 
> map the value NaN to the string "NaN", which needs to be quoted in JSON. Our 
> parser can handle that with no modifications, Java will parse such a string 
> to the correct value using standard libraries.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to