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

cqlsh column header can be incorrect when no rows are returned

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.2.5, 3.0.3, 3.2
    • None
    • Normal

    Description

      Upon migration, we internally create a pair of surrogate clustering/regular columns for compact static tables. These shouldn't be exposed to the user.

      That is, for the table

      CREATE TABLE bar (k int, c int, PRIMARY KEY (k)) WITH COMPACT STORAGE;
      

      SELECT * FROM bar should not be returning this result set:

      cqlsh:test> select * from bar;
      
       c | column1 | k | value
      ---+---------+---+-------
      
      (0 rows)
      

      Should only contain the defined c and k columns.

      Attachments

        1. Test-for-9813.txt
          7 kB
          Sylvain Lebresne
        2. 9813-2.1.txt
          2 kB
          Adam Holmberg

        Issue Links

          Activity

            People

              aholmber Adam Holmberg
              aleksey Aleksey Yeschenko
              Adam Holmberg
              Ariel Weisberg
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: