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

CQLSH: describe command doesn't output valid CQL command.

    XMLWordPrintableJSON

Details

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

    Description

      cqlsh:test> describe columnfamily stats;
      
      CREATE TABLE stats (
        gid blob PRIMARY KEY
      ) WITH
        comment='' AND
        comparator='CompositeType(org.apache.cassandra.db.marshal.Int32Type,org.apache.cassandra.db.marshal.BytesType,org.apache.cassandra.db.marshal.UTF8Type)' AND
        read_repair_chance=0.100000 AND
        gc_grace_seconds=864000 AND
        default_validation=blob AND
        min_compaction_threshold=4 AND
        max_compaction_threshold=32 AND
        replicate_on_write='true' AND
        compaction_strategy_class='SizeTieredCompactionStrategy' AND
        compression_parameters:sstable_compression='SnappyCompressor';
      

      I can create a cf in cql3 and then use describe cf to get the above output. However trying to run that create statement says that all of the following are invalid options:

      • default_validation
      • min_compaction_threshold
      • max_compaction_threshold
      • comparator

      Attachments

        Activity

          People

            thepaul paul cannon
            nickmbailey Nick Bailey
            paul cannon
            Brandon Williams
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: