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

Covering index / Bucket name translation to "Self"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • bug-backlog
    • 5.0.0
    • query
    • None
    • Triaged
    • Unknown

    Description

       

      CREATE INDEX `id_type_size_etype` ON `mybucket`(`reporting_entity_type`,encoded_size(mybucket))

       

      upon index creation gets changed to 

       

      CREATE INDEX `id_type_size_etype` ON `mybucket`(`reporting_entity_type`,encoded_size(self))

       

       

      Running a query with mybucket, covers correctly however if I use "self" it does not cover

      Covers:

       

      select reporting_entity_type,AVG(encoded_size(mybucket))
      from mybucket
      where reporting_entity_type in ["n","r","b","c"]
      group by reporting_entity_type

       

      Does not cover:

      select reporting_entity_type,AVG(encoded_size(self))
      from mybucket
      where reporting_entity_type in ["n","r","b","c"]
      group by reporting_entity_type
      
      

      Ask:

      Either prevent the conversion of bucket name to self or treat self and bucket name interchangeably in the queries

       

      Attachments

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

        Activity

          People

            bingjie.miao Bingjie Miao
            asif.kazi Asif Kazi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty