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

cqlsh: double wide unicode chars cause incorrect padding in select output

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 1.0.9, 1.1.0
    • Component/s: Legacy/Tools
    • Labels:
    • Environment:

      Using the patch pending/4003

    • Severity:
      Low

      Description

      CREATE COLUMNFAMILY cf3 (KEY text primary key);
      INSERT INTO cf3 (KEY, col1, col2) VALUES ('a', '1234 1234 1234 1234', 'abcd');
      INSERT INTO cf3 (KEY, col1, col2) VALUES ('b', '愛愛愛愛 愛愛愛愛 愛愛愛愛 愛愛愛愛', 'abcd');
      SELECT * FROM cf3 WHERE key in ('a', 'b');
      

      produces this output:

       KEY | col1                                                | col2
      -----+-----------------------------------------------------+------
         a |                                 1234 1234 1234 1234 | abcd
         b |                       愛愛愛愛 愛愛愛愛 愛愛愛愛 愛愛愛愛 | abcd
      

      note the extra spaces before the "love" glyphs.

        Attachments

          Activity

            People

            • Assignee:
              thepaul paul cannon
              Reporter:
              tpatterson Tyler Patterson
              Authors:
              paul cannon
              Reviewers:
              Brandon Williams
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: