[ 
https://issues.apache.org/jira/browse/CASSANDRA-5101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13543106#comment-13543106
 ] 

Aleksey Yeschenko commented on CASSANDRA-5101:
----------------------------------------------

[~mkjellman] Are these the one that fail for you or the ones that work? Because 
my 1.2.0 cqlsh describes them just fine in both default and legacy modes.

default (CQL3):
{noformat}
cqlsh:evidence> DESC KEYSPACE;

CREATE KEYSPACE evidence WITH replication = {
  'class': 'NetworkTopologyStrategy',
  'DC1': '2'
};

USE evidence;

CREATE TABLE domain_metadata_history (
  key text,
  column1 text,
  column2 text,
  column3 varint,
  value text,
  PRIMARY KEY (key, column1, column2, column3)
) WITH COMPACT STORAGE AND
  bloom_filter_fp_chance=0.100000 AND
  caching='KEYS_ONLY' AND
  comment='' AND
  dclocal_read_repair_chance=0.000000 AND
  gc_grace_seconds=864000 AND
  read_repair_chance=0.100000 AND
  replicate_on_write='true' AND
  compaction={'sstable_size_in_mb': '100', 'class': 
'LeveledCompactionStrategy'} AND
  compression={'chunk_length_kb': '64', 'sstable_compression': 
'SnappyCompressor'};

CREATE TABLE messages (
  key blob,
  column1 blob,
  value blob,
  PRIMARY KEY (key, column1)
) WITH COMPACT STORAGE AND
  bloom_filter_fp_chance=0.500000 AND
  caching='KEYS_ONLY' AND
  comment='' AND
  dclocal_read_repair_chance=0.000000 AND
  gc_grace_seconds=864000 AND
  read_repair_chance=0.100000 AND
  replicate_on_write='true' AND
  compaction={'class': 'SizeTieredCompactionStrategy'} AND
  compression={'chunk_length_kb': '64', 'sstable_compression': 
'SnappyCompressor'};
{noformat}

legacy (CQL2):
{noformat}
cqlsh:evidence> DESC KEYSPACE;

CREATE KEYSPACE evidence WITH strategy_class = 'NetworkTopologyStrategy'
  AND strategy_options:DC1 = '2';

USE evidence;

CREATE TABLE domain_metadata_history (
  KEY text PRIMARY KEY
) WITH
  comment='' AND
  comparator='org.apache.cassandra.db.marshal.CompositeType'<text, text, 
varint> 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='LeveledCompactionStrategy' AND
  compaction_strategy_options:sstable_size_in_mb='100' AND
  compression_parameters:chunk_length_kb='64' AND
  compression_parameters:sstable_compression='SnappyCompressor';

CREATE TABLE messages (
  KEY blob PRIMARY KEY
) WITH
  comment='' AND
  comparator=blob AND
  read_repair_chance=0.100000 AND
  gc_grace_seconds=864000 AND
  default_validation=blob AND
  min_compaction_threshold=4 AND
  max_compaction_threshold=32 AND
  replicate_on_write='true' AND
  compaction_strategy_class='SizeTieredCompactionStrategy' AND
  compression_parameters:chunk_length_kb='64' AND
  compression_parameters:sstable_compression='SnappyCompressor';
{noformat}
                
> describe commands fail in cql3 when previously created with cql2
> ----------------------------------------------------------------
>
>                 Key: CASSANDRA-5101
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5101
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.2.0
>            Reporter: Michael Kjellman
>            Assignee: Aleksey Yeschenko
>
> column families and keyspaces created with cassandra-cli/cql2 cannot be 
> described with cql3
> describe table cfname fails with: "expected string or buffer"
> describe schema fails with "expected string or buffer" as well

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to