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

Enhance describeTable to return Map of Column Family so that it can be programatically parsed

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.4
    • Legacy/Tools
    • None

    Description

      describeTable returns back a string which is too open and makes it hard for clients to introspect the column families of the table.

      The data will be returned in the following format:

      { 'Standard1':

      { 'desc': 'Table1.Standard1(ROW_KEY, COLUMN_MAP(COLUMN_KEY, COLUMN_VALUE, COLUMN_TIMESTAMP))', 'flushperiod': '60', 'sort': 'Name', 'type': 'Standard'}

      ,
      'Standard2':

      { 'desc': 'Table1.Standard2(ROW_KEY, COLUMN_MAP(COLUMN_KEY, COLUMN_VALUE, COLUMN_TIMESTAMP))', 'flushperiod': '0', 'sort': 'Name', 'type': 'Standard'}

      ,
      'StandardByTime1':

      { 'desc': 'Table1.StandardByTime1(ROW_KEY, COLUMN_MAP(COLUMN_KEY, COLUMN_VALUE, COLUMN_TIMESTAMP))', 'flushperiod': '0', 'sort': 'Time', 'type': 'Standard'}

      ,
      'Super1': { 'desc': 'Table1.Super1(ROW_KEY, SUPER_COLUMN_MAP(SUPER_COLUMN_KEY, COLUMN_MAP(COLUMN_KEY, COLUMN_VALUE, COLUMN_TIMESTAMP)))',
      'flushperiod': '0',
      'sort': 'Name',
      'type': 'Super'}}

      The CLI will also need to be updated to handle the new map that is returned

      Attachments

        Activity

          People

            sammy.yu Sammy Yu
            sammy.yu Sammy Yu
            Sammy Yu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: