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

Disallow renaming an indexed column

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.0 beta 1
    • None
    • None
    • Low

    Description

      We can now index CQL3 primary key parts (CASSANDRA-5125) but also allow to rename such columns. Unfortunately, since 2ndary index CF names currently depend on the name of the column they index, renaming an indexed column basically ends up dropping the index.

      For now, the simplest solution is probably to just forbid renaming when the column is 2ndary indexed. If you really want to rename, you can always drop the index and recreate it after the rename.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            slebresne Sylvain Lebresne Assign to me
            slebresne Sylvain Lebresne
            Sylvain Lebresne
            Aleksey Yeschenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment