Certain CQL commands allow a WITH clause for setting certain properties on a keyspace or column family. Note that CQL does not currently offer support for using all of the Cassandra column family attributes as CQL storage parameters, just a subset.
The CREATE KEYSPACE and ALTER KEYSPACE commands support setting the following keyspace properties.
CQL supports Cassandra column family attributes through the CQL parameters in the following table. In a few cases, the CQL parameters have slightly different names than their corresponding column family attributes:
| CQL Parameter Name | Default Value |
|---|---|
| bloom_filter_fp_chance | 0 |
| caching | keys_only |
| compaction_strategy_class | SizeTieredCompactionStrategy |
| compaction_strategy_options | none |
| compression_parameters | SnappyCompressor |
| comment | ''(an empty string) |
| dclocal_read_repair_chance | 0.0 |
| gc_grace_seconds | 864000 |
| max_compaction_threshold [1] | n/a |
| min_compaction_threshold | 4 |
| read_repair_chance | 0.1 |
| replicate_on_write | false |
| [1] | Ignored in Cassandra 1.1 but can still be declared (for backward compatibility). |