avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Piccolboni (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AVRO-1454) AvroAsTextInput format creates invalid JSON for NaN values
Date Fri, 07 Feb 2014 22:41:21 GMT
Antonio Piccolboni created AVRO-1454:
----------------------------------------

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


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.1.5#6160)

Mime
View raw message