Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-4827

cqlsh --cql3 unable to describe CF created with cli

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Severity:
      Low

      Description

      created CF with cli:

      create column family playlists
      with key_validation_class = UUIDType
       and comparator = 'CompositeType(UTF8Type, UTF8Type, UTF8Type)'
       and default_validation_class = UUIDType;
      

      Then get this error with cqlsh:

      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
      )
      

        Attachments

          Activity

            People

            • Assignee:
              aleksey Aleksey Yeschenko Assign to me
              Reporter:
              jbellis Jonathan Ellis
              Authors:
              Aleksey Yeschenko
              Reviewers:
              Jonathan Ellis

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment