Cassandra
  1. Cassandra
  2. CASSANDRA-4827

cqlsh --cql3 unable to describe CF created with cli

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Fix Version/s: 1.2.0 rc1
    • Component/s: Tools
    • Labels:

      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
      )
      
      1. 4827-1.2.txt
        8 kB
        Aleksey Yeschenko

        Activity

        Jonathan Ellis created issue -
        Jonathan Ellis made changes -
        Field Original Value New Value
        Fix Version/s 1.2.0 [ 12323243 ]
        Fix Version/s 1.2.0 beta 2 [ 12323284 ]
        Sylvain Lebresne made changes -
        Fix Version/s 1.2.0 rc1 [ 12323481 ]
        Fix Version/s 1.2.0 [ 12323243 ]
        Aleksey Yeschenko made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Aleksey Yeschenko made changes -
        Attachment 4827-1.2.txt [ 12560091 ]
        Aleksey Yeschenko made changes -
        Status In Progress [ 3 ] Patch Available [ 10002 ]
        Aleksey Yeschenko made changes -
        Reviewer brandon.williams jbellis
        Aleksey Yeschenko made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Gavin made changes -
        Workflow no-reopen-closed, patch-avail [ 12730241 ] patch-available, re-open possible [ 12748875 ]
        Gavin made changes -
        Workflow patch-available, re-open possible [ 12748875 ] reopen-resolved, no closed status, patch-avail, testing [ 12756696 ]

          People

          • Assignee:
            Aleksey Yeschenko
            Reporter:
            Jonathan Ellis
            Reviewer:
            Jonathan Ellis
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development