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

inclusive_end ineffective when results are to be reduced

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0-developer-preview-4
    • 2.0-developer-preview-4
    • view-engine
    • Security Level: Public
    • None
    • cb 2.0

    Description

      I have 2 design docs. One with a _count reduce function and another without any reduce.

      I'm running these query params against both of them:

      {"start_key" : "[2008,7,1]", [ "startkey_docid" : "admin0000-2008_7_1", ["end_key" : "[2008,2,20]", [ "endkey_docid" : "arch0000-2008_2_20", [ "descending" : "true", "inclusive_end" : "false"}

      ,

      Results from ddoc without reduce show:

      1. cat without_reduce.txt | grep key | wc -l
        7240

      Query with ddoc shows and extra document:

      1. cat with_reduce.txt | grep value {"key":null,"value":7241}

      I think inclusive_end isn't being honored in this case and always set to true.

      full query:
      "http://10.2.2.10:8092/default/_design/dev_test_view-15182ce/_view/dev_test_view-15182ce?end_key=%5B2008,2,20%5D&inclusive_end=false&startkey_docid=admin0000-2008_7_1&endkey_docid=arch0000-2008_2_20&descending=true&debug=true&start_key=%5B2008,7,1%5D&connection_timeout=60000&full_set=true"

      full results and design docs for each attached

      Attachments

        1. noreduce_ddoc
          0.3 kB
        2. reduce_ddoc
          0.3 kB
        3. with_reduce.txt
          5 kB
        4. without_reduce.txt
          801 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            FilipeManana Filipe Manana (Inactive)
            tommie Tommie McAfee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty