Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-51629

Negative integer in the 64bit range causes rounding

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Yes

    Description

      Add the document key "f01"  value {"c1":-5106534569952410475 } via UI
       
      select d.c1 from default d USE KEYS "f01" ; 

      int64 range -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807

      negative range length is 20  

      https://github.com/couchbase/go_json/blob/master/simple.go#L339  negative account for sign

      Attachments

        Issue Links

          Activity

            People

              ajay.bhullar Ajay Bhullar
              Sitaram.Vemulapalli Sitaram Vemulapalli
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty