You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2020/06/12 23:01:10 UTC
[GitHub] [druid] vogievetsky commented on issue #9699: EXPLAIN SQL query with no limit generates invalid query
vogievetsky commented on issue #9699:
URL: https://github.com/apache/druid/issues/9699#issuecomment-643514855
The issue here is that in JS the only numbers are doubles and doubles can not represent a number that high.
![image](https://user-images.githubusercontent.com/177816/84552182-c3658800-acc4-11ea-9532-afcb26399ab7.png)
The web console parses the JSON from the explain plan and that automatically parses the numbers into JS numbers. Is it possible for Druid's explain plan to return numbers that are not JS safe as strings?
https://stackoverflow.com/questions/47188449/json-max-int-number/47188576
Doing so would be more inline with the JSON spec: https://tools.ietf.org/html/rfc7159#section-6
```
Note that when such software is used, numbers that are integers and
are in the range [-(2**53)+1, (2**53)-1] are interoperable in the
sense that implementations will agree exactly on their numeric
values.
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org