Jonathan Ellis created CASSANDRA-4827:
-----------------------------------------
Summary: cqlsh --cql3 unable to describe CF created with cli
Key: CASSANDRA-4827
URL: https://issues.apache.org/jira/browse/CASSANDRA-4827
Project: Cassandra
Issue Type: Bug
Components: Tools
Affects Versions: 1.1.0
Reporter: Jonathan Ellis
Assignee: Aleksey Yeschenko
Priority: Minor
Fix For: 1.2.0 beta 2
created CF with cli:
{noformat}
create column family playlists
with key_validation_class = UUIDType
and comparator = 'CompositeType(UTF8Type, UTF8Type, UTF8Type)'
and default_validation_class = UUIDType;
{noformat}
Then get this error with cqlsh:
{noformat}
cqlsh:music> describe table playlists;
/Users/jonathan/projects/cassandra/git-trunk/bin/../pylib/cqlshlib/cql3handling.py:771:
UnexpectedTableStructure: Unexpected table structure; may not translate
correctly to CQL. expected composite key CF to have column aliases, but found
none
/Users/jonathan/projects/cassandra/git-trunk/bin/../pylib/cqlshlib/cql3handling.py:794:
UnexpectedTableStructure: Unexpected table structure; may not translate
correctly to CQL. expected [u'KEY'] length to be 3, but it's 1.
comparator='org.apache.cassandra.db.marshal.CompositeType(org.apache.cassandra.db.marshal.UTF8Type,org.apache.cassandra.db.marshal.UTF8Type,org.apache.cassandra.db.marshal.UTF8Type)'
CREATE TABLE playlists (
"KEY" uuid PRIMARY KEY
)
{noformat}
--
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