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

CQLSH in CQL2 mode (-2) Cannot set compaction_strategy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Won't Fix
    • None
    • Legacy/Tools
    • None
    • Normal

    Description

      Attempting to create a table in CQLSH -2 will always result in SizeTieredCompaction regardless of specified option.

      cqlsh:fun>  CREATE TABLE asciiCFLVL (  key ascii PRIMARY KEY,  asciiA ascii,  asciiB ascii  ) with compaction_strategy_class = 'LeveledCompactionStrategy' ;
      cqlsh:fun> DESCRIBE TABLE asciiCFLVL ;
      
      CREATE TABLE asciiCFLVL (
        'key' ascii PRIMARY KEY,
        asciiB ascii,
        asciiA ascii
      ) WITH
        comment='' AND
        comparator=text AND
        read_repair_chance=0.100000 AND
        gc_grace_seconds=864000 AND
        default_validation=text 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='LZ4Compressor';
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            rspitzer Russell Spitzer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: