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

DISTINCT doesn't push down

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Duplicate
    • Major
    • feature-backlog
    • 6.0.0
    • query
    • None

    Description

      A simple DISTINCT query does not seem to pushdown to the index the way we would expect:

       

      CREATE INDEX idx ON test(type);
      SELECT DISTINCT type FROM test WHERE type IS NOT MISSING;
      

       

       

      However, the equivalent using GROUP BY does get pushed down:

      SELECT type FROM test WHERE type IS NOT MISSING GROUP BY type;

      Attachments

        Issue Links

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

          Activity

            People

              keshav Keshav Murthy
              perry Perry Krug
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty