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

cqlsh fails to decode utf-8 characters for text typed columns.

    XMLWordPrintableJSON

Details

    • Low

    Description

      Hi, we've found a bug that cqlsh can't handle unicode text in select conditions even if it were text type.

      $ ./bin/cqlsh
      Connected to Test Cluster at 127.0.0.1:9042.
      [cqlsh 5.0.1 | Cassandra 3.2-SNAPSHOT | CQL spec 3.3.1 | Native protocol v4]
      Use HELP for help.
      cqlsh> create KEYSPACE test WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};
      cqlsh> create table test.test(txt text primary key);
      cqlsh> insert into test.test (txt) values('日本語');
      cqlsh> select * from test.test where txt='日本語';
      'ascii' codec can't decode byte 0xe6 in position 35: ordinal not in range(128)
      cqlsh> 
      

      Attachments

        1. 10875-3.1.txt
          0.7 kB
          Yasuharu Goto
        2. 10875-2.2.txt
          1 kB
          Yasuharu Goto
        3. 10875-2.1-3.txt
          1 kB
          Paulo Motta
        4. 10875-2.1-2.txt
          1 kB
          Yasuharu Goto
        5. 10875-2.1.12.txt
          0.7 kB
          Yasuharu Goto

        Activity

          People

            Yasuharu Yasuharu Goto
            Yasuharu Yasuharu Goto
            Yasuharu Goto
            Paulo Motta
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: