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

Values greater than MaxFloat64 get evaluated as Binary type

    XMLWordPrintable

Details

    • Untriaged
    • No

    Description

      EvaluateForIndex on values > greater than MaxFloat64 return binary types.

      Repro steps with primary index
      1. Create below document:

      { "f1": 7.7976931348623157e+467 }

      2. CREATE PRIMARY INDEX `#primary` ON `default`

      3. SELECT f1, meta().id FROM default WHERE f1 IS NOT NULL
      [

      { "f1": "<binary (23 b)>", "id": "K2" }

      ]

      In secondary index, EvaluateForIndex returns scalar as "<binary (23 b)>" with value Type as binary. Since binary is not a type of N1QL value that GSI understands this leads to an incomplete key in case of composite index.

      What is the expected behavior in case of such numbers exceeding the range of Maxfloat64?

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              Donald.haggart Donald Haggart
              prathibha Prathibha Bisarahalli (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty