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

Do not allow use of collection with compact storage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.2.0 beta 3
    • None
    • None
    • Low

    Description

      You can define ColumnFamily with collection type and compact storage as follows:

      CREATE TABLE test (
        user ascii PRIMARY KEY,
        mails list<text>
      ) WITH COMPACT STORAGE;
      

      This does not make sense and end up error when inserting data to collection.

      INSERT INTO test (user, mails) VALUES ('foo', ['foo@foo.org']);
      

      I think it is better not to allow defining such ColumnFamily.

      Attachments

        1. 4990.txt
          1 kB
          Sylvain Lebresne

        Activity

          People

            slebresne Sylvain Lebresne
            yukim Yuki Morishita
            Sylvain Lebresne
            Yuki Morishita
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: