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

N1QL rounding causes CAS mismatch

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 4.5.1, 4.6.0, 5.0.0
    • 4.5.0
    • query
    • None
    • Untriaged
    • Unknown

    Description

      The query engine internally represents all numbers as float64. This leads to rounding errors at the margins. In particular, with large CAS values, the rounding errors cause CAS mismatch errors.

      See https://forums.couchbase.com/t/different-cas-value-for-the-same-document-obtained-via-java-sdk-and-n1ql/6503/25 and https://forums.couchbase.com/t/n1ql-returns-a-different-cas-than-the-driver-functions/9124/3

      Attachments

        Issue Links

          For Gerrit Dashboard: MB-20164
          # Subject Branch Project Status CR V

          Activity

            People

              Sitaram.Vemulapalli Sitaram Vemulapalli
              gerald Gerald Sangudi (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty