You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/02/08 05:08:00 UTC

[jira] [Commented] (ASTERIXDB-2514) "JSON (formatted)" in the query interface cannot handle BigInt properly

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

ASF subversion and git services commented on ASTERIXDB-2514:
------------------------------------------------------------

Commit 845615ae954b01aede9fa0e90a09093f44ccaaec in asterixdb's branch refs/heads/master from Xikui Wang
[ https://gitbox.apache.org/repos/asf?p=asterixdb.git;h=845615a ]

[ASTERIXDB-2514] Fix BigInt display in formatted JSON

- user model changes: no
- storage format changes: no
- interface changes: no

Javascript treats all numbers as doubles. This causes large BigInt
values cannot be displayed properly in the formatted JSON option, and
the lower digits are replaced with "0". In this patch, we cast the
numbers into strings with special characters, and cast those strings
back after they are parsed by the JSON parser. Also, to make sure future
new data types can be displayed properly, the default JSON display is
set to "literal".

Change-Id: I1bbef349efba0da24d01afb1cb17b4f7d5b7f261
Reviewed-on: https://asterix-gerrit.ics.uci.edu/3142
Sonar-Qube: Jenkins <je...@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
Contrib: Jenkins <je...@fulliautomatix.ics.uci.edu>
Reviewed-by: Michael Blow <mb...@apache.org>


> "JSON (formatted)" in the query interface cannot handle BigInt properly
> -----------------------------------------------------------------------
>
>                 Key: ASTERIXDB-2514
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2514
>             Project: Apache AsterixDB
>          Issue Type: Bug
>            Reporter: Xikui Wang
>            Assignee: Xikui Wang
>            Priority: Major
>
> Due to the limitation of the JSON parser in JavaScript, numeric values are expected to be in the range of double. This causes BigInt cannot be parsed and displayed properly in the WebUI properly.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)