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

Default behavior of generating index_name for columns might need to be improved.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.8.2
    • Legacy/CQL
    • None

    Description

      I have a few column families, each has a column called user_name. I tried to use secondary index on user_name column for each of the column family. However, when creating these column families, cassandra keeps reporting "Duplicate index name..." exception. I finally figured out that it seems the default index name is "column name"+"_idx", this make my column family violate the "uniqueness of index name" rule.

      I was wondering if the default index_name generating rule could be like "column name"+"cf name", so the index name would not collide with each other that easily, if the user do not assign "index_name" when creating a column family.

      Attachments

        1. 2903.txt
          1 kB
          Jonathan Ellis

        Activity

          People

            jbellis Jonathan Ellis
            yulinyen Boris Yen
            Jonathan Ellis
            Brandon Williams
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: