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

Fix CREATE INDEX behavior when keyspace and field names are the same

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 4.5.0
    • 4.5.0
    • query
    • None
    • Untriaged
    • Unknown

    Description

      From Sitaram:

      create index ix5 on default(default.f1);

      cbq> explain select f1 from default d where d.f1 = 5;
      {
      "requestID": "5629cfe1-c7e3-4dda-bb3d-502765c929d2",
      "errors": [

      { "code": 4000, "msg": "No primary index on keyspace default. Use CREATE PRIMARY INDEX to create one." }

      ],
      }

      Attachments

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

        Activity

          People

            ajay.bhullar Ajay Bhullar
            gerald Gerald Sangudi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty