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

CREATE PRIMARY INDEX/CREATE INDEX/DROP INDEX DROP PRIMARY INDEX

    XMLWordPrintable

Details

    • Story
    • Resolution: Fixed
    • Major
    • 7.0.0
    • 6.5.0
    • query
    • None

    Description

      Be able to create and drop indexes on collections.

       

      Setup: Standard.

      Actions:

      • Set query context default:myBucket.
      • Run query CREATE PRIMARY INDEX ON myScope.myCollection .

      Expected Result: Index named "#primary" appears.

       

      Setup: Standard.

      Actions:

      • Set query context default:.
      • Run query CREATE INDEX my_idx_1 ON myBucket.myScope.myCollection(foo, bar) .

      Expected Result: Index named "my_idx_1" appears.

       

      Setup: Standard.

      Actions:

      • Set query context default:garbage.
      • Run query CREATE INDEX my_idx_1 ON default:myBucket.myScope.myCollection(foo, bar) .
      • Run query DROP INDEX default:myBucket.myScope.myCollection.my_idx_1 .

      Expected Result: Index named "my_idx1" appears and disappears.

      Setup: Standard.

      Actions:

      • Set query context default:myBucket.
      • Run query CREATE PRIMARY INDEX ON myScope.myCollection .
      • Run query DROP PRIMARY INDEX ON myScope.myCollection

      Expected Result: Index named "#primary" appears and disappears.

      Attachments

        Issue Links

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

          Activity

            People

              marco.greco Marco Greco (Inactive)
              johan.larson Johan Larson (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