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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.0.9, 1.1.0
    • Legacy/Tools
    • Using the patch pending/4003

    • 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

            thepaul paul cannon
            tpatterson Tyler Patterson
            paul cannon
            Brandon Williams
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: