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

cqlsh --cql3 unable to describe CF created with cli

    XMLWordPrintableJSON

Details

    • 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

        1. 4827-1.2.txt
          8 kB
          Aleksey Yeschenko

        Activity

          People

            aleksey Aleksey Yeschenko
            jbellis Jonathan Ellis
            Aleksey Yeschenko
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: