[
https://issues.apache.org/jira/browse/CASSANDRA-16429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17286229#comment-17286229
]
Yifan Cai commented on CASSANDRA-16429:
---------------------------------------
PR: https://github.com/apache/cassandra/pull/907
Circle:
https://app.circleci.com/pipelines/github/yifan-c/cassandra?branch=CASSANDRA-16429%2Ftrunk
The patch reverts back to use the UTF8 compatible string encoding for column
names, user defined type names and field names. Those are all the types of
names that can use UTF8, according to the cql definition.
With the patch, the ASCII encoding is only used for table names, keyspace names
and places we are sure that only contain ASCII characters.
The {{SerDeserTest}} test cases are extended to cover the UTF8 cases. If
unapply the patch, the test should fail.
> Fix incorrect encoding for strings can be UTF8
> ----------------------------------------------
>
> Key: CASSANDRA-16429
> URL: https://issues.apache.org/jira/browse/CASSANDRA-16429
> Project: Cassandra
> Issue Type: Bug
> Components: CQL/Interpreter
> Reporter: Yoshi Kimoto
> Assignee: Yifan Cai
> Priority: Normal
> Fix For: 4.0-beta
>
> Attachments: jptest.cql
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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: [email protected]
For additional commands, e-mail: [email protected]