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

Display PK values along the header when using EXPAND in cqlsh

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Not A Problem
    • None
    • None

    Description

      Follow-up to CASSANDRA-5597 proposed by jjordan.

      Currently cqlsh run in vertical mode prints a header like this:

      cqlsh> EXPAND on;
      Now printing expanded output
      cqlsh> SELECT * FROM system.schema_columnfamilies limit 1;
      
      @ Row 1
      -----------------------------+-----------------------------------------------------------------------------------------
       keyspace_name               | system_auth
       columnfamily_name           | users
       bloom_filter_fp_chance      | 0.01
       caching                     | KEYS_ONLY
       column_aliases              | []
      (...)

      The idea is to make it print header this way:

      cqlsh> EXPAND on;
      Now printing expanded output
      cqlsh> SELECT * FROM system.schema_columnfamilies limit 1;
      
      @ Row 1: system_auth, users
      -----------------------------+-----------------------------------------------------------------------------------------
       keyspace_name               | system_auth
       columnfamily_name           | users
       bloom_filter_fp_chance      | 0.01
       caching                     | KEYS_ONLY
       column_aliases              | []
      (...)

      jjordan, please verify if it's what you requested for.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              michalm MichaƂ Michalski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: