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

cqlsh --cql3 unable to describe CF created with cli

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 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
      )
      

        Attachments

        1. 4827-1.2.txt
          8 kB
          Aleksey Yeschenko

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: