Browse files

fix WITH compaction_strategy -> WITH compaction

patch by jbellis for CASSANDRA-4968
  • Loading branch information...
1 parent b226ae5 commit 6cdbb2d7b16fdd783c7bb93b9b40b79d526f342d @jbellis jbellis committed Nov 17, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 doc/cql3/CQL.textile
  2. +1 −1 src/java/org/apache/cassandra/cql3/
@@ -227,7 +227,7 @@ CREATE TABLE timeline (
body text,
posted_by text,
PRIMARY KEY (userid, posted_month, posted_time)
-) WITH compaction_strategy = { 'class' : 'LeveledCompactionStrategy' };
+) WITH compaction = { 'class' : 'LeveledCompactionStrategy' };
The @CREATE TABLE@ statement creates a new table. Each such table is a set of _rows_ (usually representing related entities) for which it defines a number of properties. A table is defined by a "name":#createTableName, it defines the <a href="#createTableColumn"><it>columns</it></a> composing rows of the table and have a number of "options":#createTableOptions. Note that the @CREATE COLUMNFAMILY@ syntax is supported as an alias for @CREATE TABLE@ (for historical reasons).
@@ -47,7 +47,7 @@
public static final String KW_CACHING = "caching";
public static final String KW_BF_FP_CHANCE = "bloom_filter_fp_chance";
- public static final String KW_COMPACTION = "compaction";
+ public static final String KW_COMPACTION = "compaction_strategy";
public static final String KW_COMPRESSION = "compression";
public static final String COMPACTION_STRATEGY_CLASS_KEY = "class";

0 comments on commit 6cdbb2d

Please sign in to comment.