cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Kjellman (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-4827) cqlsh --cql3 unable to describe CF created with cli
Date Wed, 31 Oct 2012 21:03:12 GMT

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

Michael Kjellman commented on CASSANDRA-4827:
---------------------------------------------

similar issue when trying to use COPY in cqlsh3. cf was created with cli

/opt/cassandra/apache-cassandra-1.1.6/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
/opt/cassandra/apache-cassandra-1.1.6/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.IntegerType)'
                
> 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
>              Labels: cql3
>             Fix For: 1.2.0
>
>
> 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

Mime
View raw message