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

distinct/non-distinct aggregate functions on the same expression are treated the same (wrong results)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0
    • 2.1.1
    • query
    • Security Level: Public
    • None

    Description

      A query like:

      SELECT COUNT, COUNT(DISTINCT x)

      would give incorrect results. It would only calculate one of them, and return the same result for both expressions in the projection.

      Attachments

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

        Activity

          People

            iryna iryna
            mschoch Marty Schoch [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty