cqlsh: DESCRIBE output for a columnfamily does not work as input to same C*
instance
------------------------------------------------------------------------------------
Key: CASSANDRA-3596
URL: https://issues.apache.org/jira/browse/CASSANDRA-3596
Project: Cassandra
Issue Type: Bug
Components: Tools
Affects Versions: 1.0.3
Environment: Cqlsh running against a recent Cassandra build
Reporter: paul cannon
Assignee: paul cannon
Priority: Minor
Fix For: 1.0.6
The {{DESCRIBE COLUMNFAMILY}} cqlsh command produces output that is intended to
be usable as valid CQL (at least, when given to another Cassandra instance of
the same version). But the output yields errors when run:
{noformat}
cqlsh> USE blah;
cqlsh:blah> CREATE COLUMNFAMILY cf1 (c1 int PRIMARY KEY, c2 varchar);
cqlsh:blah> DESCRIBE COLUMNFAMILY cf1;
CREATE COLUMNFAMILY cf1 (
c1 int PRIMARY KEY,
c2 text
) WITH
comment='' AND
comparator=text AND
row_cache_provider='ConcurrentLinkedHashCacheProvider' AND
key_cache_size=200000.000000 AND
row_cache_size=0.000000 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
row_cache_save_period_in_seconds=0 AND
key_cache_save_period_in_seconds=14400 AND
replication_on_write=True;
cqlsh:blah> CREATE COLUMNFAMILY cf1 (
... c1 int PRIMARY KEY,
... c2 text
... ) WITH
... comment='' AND
... comparator=text AND
... row_cache_provider='ConcurrentLinkedHashCacheProvider' AND
... key_cache_size=200000.000000 AND
... row_cache_size=0.000000 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
... row_cache_save_period_in_seconds=0 AND
... key_cache_save_period_in_seconds=14400 AND
... replication_on_write=True;
Bad Request: replication_on_write is not a valid keyword argument for CREATE
COLUMNFAMILY
{noformat}
So it needs to do a better job of determining which CF attributes are valid for
which C* versions.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira