-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NaN result is a string in JSON result #166
Comments
Either way, I guess it's worth putting that info into the docs. My suggestion would be sticking with the |
Wait, you might have mixed something up here. Division of zero by zero is typically represented as a not-a-number value in floating point numbers, that's correct. In Java this would be for example a double variable with the value |
No, I think I understood it correct. To me, the alternative, so returning And as I said, for whatever solution we will then go for, it's definitely worth mentioning it in a note within the docs. |
Sorry for the nit-pick, but my assumption came from the fact that it's simply not correct that
That's a matter of taste I would say. 😉 IMHO the biggest argument pro keeping Mentioning the fact that "ratio" results might contain |
👍 |
add info regarding "NaN" ratio to docs closes #166
When you get
NaN
as result of an aggregation (e.g. through division by zero), the result is formatted as string ("NaN"
). This is, because the JSON standard doesn't allow you to return something likeNaN
as number.I see two possibilities here:
null
in the JSON responseExample Request:
The CSV format isn't affected as most CSV descriptions (e.g. RFC 4180) don't have data types.
The text was updated successfully, but these errors were encountered: