[ 
https://issues.apache.org/jira/browse/CASSANDRA-16429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17282848#comment-17282848
 ] 

Yifan Cai commented on CASSANDRA-16429:
---------------------------------------

The WIP patch: 
[https://github.com/yifan-c/cassandra/commit/a5d0c9c4864899ef0f2bf65b82e7dc41288c2d09]
 to allow UTF-8 string in column name. 

 
{code:java}
➜ bin/cqlsh
Connected to Test Cluster at 127.0.0.1:9042.
[cqlsh 5.0.1 | Cassandra 4.0-beta5-SNAPSHOT | CQL spec 3.4.5 | Native protocol 
v4]
Use HELP for help.
cqlsh> CREATE KEYSPACE test WITH replication = {'class': 'SimpleStrategy', 
'replication_factor': '1'}  AND durable_writes = true;
cqlsh> CREATE TABLE test.non_ascii_test ( "测试" text PRIMARY KEY, value text);
cqlsh> INSERT INTO test.non_ascii_test ("测试", value) VALUES ('foo', 'bar');
cqlsh> SELECT * FROM test.non_ascii_test; 

  测试 | value
------+-------
  foo |   bar

(1 rows)
{code}
 

> cqlsh garbles column names with Japanese characters
> ---------------------------------------------------
>
>                 Key: CASSANDRA-16429
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16429
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CQL/Interpreter
>            Reporter: Yoshi Kimoto
>            Assignee: Adam Holmberg
>            Priority: Normal
>             Fix For: 4.0-beta
>
>         Attachments: jptest.cql
>
>
> Tables created with Japanese character name columns are working well in C* 
> 3.11.10 when doing a SELECT * in cqlsh but will show as garbled (shown as 
> "?") in 4.0-beta4. DESCRIBE shows the column names correctly in both cases.
> Run the attached jptest.cql script in both envs with cqlsh -f. They will 
> yield different results.
> My test env (MacOS 10.15.7):
> C* 3.11.10 with
>  - OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_252-b09)
>  - Python 2.7.16
> C* 4.0-beta4
>  - OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.9.1+1)
>  - Python 3.8.2



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to