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

Query is wrongly covering will result in wrong results

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 6.0.3, 6.5.0
    • 5.5.5, 6.5.0
    • query
    • Untriaged
    • Yes

    Description

      CREATE INDEX ix11 ON default (ALL ARRAY v.fname FOR v IN Names END) WHERE `type`="doc" AND `owner`="xyz";
       
      EXPLAIN SELECT RAW meta().id FROM default WHERE type="doc" AND owner="xyz" AND ANY v IN Names SATISFIES (v.fname='John' AND v.lname ='Doe') END;
      
      

      As there is no lname in the index it should not covering. The implict covering of ANY predicate must handle any part that is not covered.

      Attachments

        Issue Links

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

          Activity

            People

              mihir.kamdar Mihir Kamdar (Inactive)
              Sitaram.Vemulapalli Sitaram Vemulapalli
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  PagerDuty