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

Mike Klaas updated SOLR-449:
----------------------------

    Attachment: nan.patch

Fix that serializes NaN/Inf as 

float('NaN')
float('Inf')

which will produce the proper values if the underlying c library is 
sufficiently smart.  To do it more portably requires importing modules, so 
isn't particularly feasible.

I'll probably commit this soon.  ruby might also suffer from the same problem, 
though I don't know how to represent NaN properly there.

> python (and presumably ruby) writer can generate NaN
> ----------------------------------------------------
>
>                 Key: SOLR-449
>                 URL: https://issues.apache.org/jira/browse/SOLR-449
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Mike Klaas
>            Assignee: Mike Klaas
>            Priority: Trivial
>         Attachments: nan.patch
>
>
> The JSON response writer can omit "NaN" as float literal; this is fine for 
> JSON but breaks eval() in python (not sure if this is a problem in ruby).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to