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

Cannot create secondary index on a table WITH COMPACT STORAGE

    XMLWordPrintableJSON

Details

    • Low

    Description

      In CASSANDRA-8156 it is said that secondary indexes are not allowed on clustering columns in COMPACT tables.

      However, I found that it is not possible to create a secondary index on the value column in a COMPACT table:

      CREATE TABLE t (
      a INT,
      b INT,
      c INT,
      PRIMARY KEY (a, b)
      ) WITH COMPACT STORAGE;

      CREATE INDEX ON t (c);

      Bad Request: Secondary indexes are not supported on PRIMARY KEY columns in COMPACT STORAGE tables

      Attachments

        1. 9527-2.1-V2.txt
          4 kB
          Benjamin Lerer
        2. 9527-2.0-V2.txt
          8 kB
          Benjamin Lerer
        3. 9527.txt
          2 kB
          Benjamin Lerer

        Activity

          People

            blerer Benjamin Lerer
            fuggy_yama fuggy_yama
            Benjamin Lerer
            Tom Hobbs
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: