Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Availability - Unavailable
-
Low
-
Low Hanging Fruit
-
User Report
-
All
-
None
-
Description
cqlsh fails to describe types with non-ascii characters. This is specific to Python 2 and does not occur in Python 3 (only tested on trunk so far).
CREATE TYPE ks."ࠑ " ( v int );
aholmberg-rmbp16:cassandra adamholmberg$ pyenv shell 2.7.17 aholmberg-rmbp16:cassandra adamholmberg$ bin/cqlsh Connected to Test Cluster at 127.0.0.1:9042. [cqlsh 5.0.1 | Cassandra 4.0-beta4-SNAPSHOT | CQL spec 3.4.5 | Native protocol v4] Use HELP for help. cqlsh> desc types; Traceback (most recent call last): File "/Users/adamholmberg/code/cassandra/bin/cqlsh.py", line 1391, in do_describe self.describe_list(result) File "/Users/adamholmberg/code/cassandra/bin/cqlsh.py", line 1438, in describe_list names.append(str(row['name'])) UnicodeEncodeError: 'ascii' codec can't encode character u'\u0811' in position 1: ordinal not in range(128)
3.11 appears to handle everything properly.
Attachments
Issue Links
- depends upon
-
CASSANDRA-16539 cqlsh encoding error with unicode in multi-line statement
- Resolved