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

cqlsh: describe table shows wrong data type for CompositeType

    XMLWordPrintableJSON

Details

    • Normal

    Description

      DESCRIBE for CompositeType produces wrong output.

      Currently:

      CREATE TABLE compo.comp (
          id int PRIMARY KEY,
          comp 'org.apache.cassandra.db.marshal.CompositeType'<int, text>
      )...
      

      Correct:

      CREATE TABLE compo.comp (
          id int PRIMARY KEY,
          comp 'org.apache.cassandra.db.marshal.CompositeType(Int32Type,UTF8Type)'
      )...
      

      Means:
      1. use normal brackets instead of <>
      1. use C* type names instead of CQL3 names
      1. move types inside quoted

      Attachments

        1. CASSANDRA-1.2-7399.patch
          0.8 kB
          Mikhail Stepura
        2. CASSANDRA-2.1-7399.patch
          1.0 kB
          Mikhail Stepura

        Issue Links

          Activity

            People

              mishail Mikhail Stepura
              snazy Robert Stupp
              Mikhail Stepura
              Tom Hobbs
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: