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

the problem of column family and table use compositetype as row key

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Invalid
    • None
    • Legacy/CQL
    • cassandra2.0.1 and hector

    • Normal

    Description

      The following two scripts 's content is the same but use cassandra-cli and cql.

      cassandra-cli script is :

      create column family gameinfo with comparator = 'UTF8Type'
      and key_validation_class = 'CompositeType(UTF8Type, UTF8Type)'
      AND default_validation_class = UTF8Type
      and column_metadata=[

      Unknown macro: {column_name}

      ]
      with read_repair_chance=0.1
      and dclocal_read_repair_chance=0.5;

      cql script is :

      CREATE TABLE gameinfo (
      key1 text,
      key2 text,
      ltype text
      PRIMARY KEY ((key1, key2))
      ) ;

      I can insert data use compositetype as row key when using cassandra-cli script, but failed using the cql script.

      So, I think this maybe a bug.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nivance nivance
            nivance nivance
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: