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

CQL3 doesn't allow static CF definition with compact storage in C* 1.1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 1.1.7
    • None
    • None
    • Normal

    Description

      In Cassandra 1.1, the following CQL3 definition:

      CREATE TABLE user_profiles (
          user_id text PRIMARY KEY,
          first_name text,
          last_name text,
          year_of_birth int
      ) WITH COMPACT STORAGE;
      

      yields:

      Bad Request: COMPACT STORAGE requires at least one column part of the clustering key, none found
      

      This works fine in 1.2 however.

      Attachments

        1. 4910.txt
          2 kB
          Sylvain Lebresne

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: