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

cqlsh describe bug

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 3.0 beta 1
    • None
    • Normal

    Description

      While trying to fix cqlsh dtests. I noticed quite a big bug. Not sure if this is a python driver bug or cqlsh?

      Looks like the column names are now in alphabetical order but the PRIMARY KEY stays at the top.

      cqlsh:foo> CREATE TABLE foo.users ( userid text PRIMARY KEY, firstname text, lastname text, age int);
      
      cqlsh:foo> DESC TABLE foo.users ;
      
      CREATE TABLE foo.users (
          age int PRIMARY KEY,
          firstname text,
          lastname text,
          userid text
      ) WITH bloom_filter_fp_chance = 0.01
          AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
          AND comment = ''
          AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy'}
          AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
          AND dclocal_read_repair_chance = 0.1
          AND default_time_to_live = 0
          AND gc_grace_seconds = 864000
          AND max_index_interval = 2048
          AND memtable_flush_period_in_ms = 0
          AND min_index_interval = 128
          AND read_repair_chance = 0.0
          AND speculative_retry = '99.0PERCENTILE';
      

      Attachments

        Activity

          People

            aholmber Adam Holmberg
            tjake T Jake Luciani
            Adam Holmberg
            Aleksey Yeschenko
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: