Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-4192

CQL3: fix index dropping and assign default name if none provided at index creation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 1.1.1
    • Legacy/CQL
    • Normal

    Description

      This ticket proposes to fix two problems of CQL3 index handling:

      1. DROP INDEX is broken (because the code forgot to clone the metadata before doing modification which break the schema update path)
      2. If an index is created with a name (which CREATE INDEX allow), there is no way to drop the index (note that we will internally assign a name to the index ColumnFamilyStore, but we don't assign a name in the ColumnDefinition object, which is the only one checked by DROP INDEX).

      Attachments

        1. 4192.txt
          6 kB
          Sylvain Lebresne
        2. 4192-v2.txt
          5 kB
          Sylvain Lebresne

        Activity

          People

            slebresne Sylvain Lebresne
            slebresne Sylvain Lebresne
            Sylvain Lebresne
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: