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

Window Function: Decimal precision mismatch after scale 6/7 between N1QL and SQl++

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • bug-backlog
    • 6.5.0
    • analytics
    • Enterprise Edition 6.5.0 build 2684
    • Untriaged
    • Centos 64-bit
    • No

    Description

      1. Upload the attached lines.json into KV node after creating a "default" bucket
      2. /opt/couchbase/bin/cbimport json -c couchbase://127.0.0.1 -u Administrator -p password -b default -d file://lines.json -f lines -g key::#UUID# -t 4

      1. Create dataset on Analytics shadowing default bucket
      2. Connect link Local
      3. Run the below query on N1QL and Analytics and compare the results. After scale of 5 - 7 based on different aggregate and window function. I am just attaching it for var_pop

      // N1QL
      select var_pop(decimal_field) from default where char_field='C';
       
       [ [    {        "$1": 6611564.8395061735    }    ]
      

      select var_pop(decimal_field) from default_shadow where char_field='C';
       [ [   {     "$1": 6611564.839506171   } ]
      

      Attachments

        Issue Links

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

          Activity

            People

              till Till Westmann
              tanzeem.ahmed Tanzeem Ahmed (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty