From 6cdbb2d7b16fdd783c7bb93b9b40b79d526f342d Mon Sep 17 00:00:00 2001 From: Jonathan Ellis Date: Sat, 17 Nov 2012 18:24:36 +0100 Subject: [PATCH] fix WITH compaction_strategy -> WITH compaction patch by jbellis for CASSANDRA-4968 --- doc/cql3/CQL.textile | 2 +- src/java/org/apache/cassandra/cql3/CFPropDefs.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/cql3/CQL.textile b/doc/cql3/CQL.textile index bf2746e798..931aa180ac 100644 --- a/doc/cql3/CQL.textile +++ b/doc/cql3/CQL.textile @@ -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' }; p. 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 columns 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). diff --git a/src/java/org/apache/cassandra/cql3/CFPropDefs.java b/src/java/org/apache/cassandra/cql3/CFPropDefs.java index 0b563cc70b..5b29a2ab90 100644 --- a/src/java/org/apache/cassandra/cql3/CFPropDefs.java +++ b/src/java/org/apache/cassandra/cql3/CFPropDefs.java @@ -47,7 +47,7 @@ public class CFPropDefs extends PropertyDefinitions 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";